You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you very much for your excellent package.
But as I don't know C, I face the following problem:
There are typedefs in test.go for C# methods with signatures int A(int, int) and string S(). That's OK.
But I need to return array of bytes (byte[]) from my C# method and consume it from Go function.
What C# method signature and corresponding typedef to use ?
To return slice of bytes from Go function with the help of C.GoBytes I need unsafe.Pointer and C.int. How to obtain these ?
Could you provide an example ?
The text was updated successfully, but these errors were encountered:
Hi @POSOlSoft, that's interesting, I haven't reached that yet. I wrote this quick test to handle char* to Go string conversions: https://github.com/matiasinsaurralde/go-dotnet/blob/master/dotnet/test.go#L48-L54
Passing an array of []byte is more complex, I would focus on that asap, I'm currently refactoring the code generation tool and trying to fix Windows support. Will keep this issue open in case I have any updates.
Thank you very much for your excellent package.
But as I don't know C, I face the following problem:
There are typedefs in test.go for C# methods with signatures int A(int, int) and string S(). That's OK.
But I need to return array of bytes (byte[]) from my C# method and consume it from Go function.
What C# method signature and corresponding typedef to use ?
To return slice of bytes from Go function with the help of C.GoBytes I need unsafe.Pointer and C.int. How to obtain these ?
Could you provide an example ?
The text was updated successfully, but these errors were encountered: