Bernat
09/20/2024, 3:32 PMdata class User(
val id: String,
val name: String,
val email: String
)
fun getUser(): COpaquePointer {
return StableRef.create(User("1", "test", "test@test.com")).asCPointer()
}
And this binding:
[DllImport("test.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public delegate* unmanaged[Cdecl]<void*> getUser;
Is there any way to get the User
class in C# with the COpaquePointer
?