We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm trying to send an array of a custom structure to mono, how would I be able to do this?
c++
std::vector<CustomStructure> vec; method.invoke_instance<void(std::vector<CustomStructure>)>(object, vec);
I've already made the converter for this structure, but I don't know how to make the signature to use an array because the method is not found in c#
c#
public void OnData(ns2.CustomStructure[] data) { Console.WriteLine($"OnData: ${data.Length}"); }
the signature: Test::OnData(ns2.CustomStructure[])
Test::OnData(ns2.CustomStructure[])
if i use inside my namespace, i get * Assertion at ..\mono\metadata\object.c:1938, condition 'klass' not met
* Assertion at ..\mono\metadata\object.c:1938, condition 'klass' not met
I would also like to understand more about std::vector / std::array > any_type[], any_type is my type ?
std::vector / std::array
any_type[]
any_type
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I'm trying to send an array of a custom structure to mono, how would I be able to do this?
c++
std::vector<CustomStructure> vec; method.invoke_instance<void(std::vector<CustomStructure>)>(object, vec);
I've already made the converter for this structure, but I don't know how to make the signature to use an array because the method is not found in c#
c#
the signature:
Test::OnData(ns2.CustomStructure[])
if i use inside my namespace, i get
* Assertion at ..\mono\metadata\object.c:1938, condition 'klass' not met
I would also like to understand more about
std::vector / std::array
>any_type[]
,any_type
is my type ?The text was updated successfully, but these errors were encountered: