-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
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
Is Memory<byte> supported as return type in dotnet? #208
Comments
A .NET But there might be some other reason you're unable to call the method.
|
Can you check what properties are defined on the JS object? Object.keys(obj)
Do you see other expected methods/properties on the object?
How are you getting the JS instance of the class?
|
BTW, currently I use base64 encoded string to pass binary data from .NET to Node.js as a workaround. |
I confirmed in #220 with more testing that
This sounds like there was some other problem with the method that is unrelated to the fact that it returns |
I'm closing this for now since the originally reported problem is not reproducible. But feel free to re-open with more information if you're still having this problem. |
I tried to use
Memory<byte>
as return type of a method on dotnet side and call the method from Javascript.However, although the generated .d.ts file contains the method signature, the Javascript code is not able to call that method. The error message says the object does not have such method/property/function. I tried to change the return type to string or byte[] then the method could be called from Javascript.
Is
Memory<byte>
supported?BTW, I suspected marshaller code needs to be generated and utlised, however, I couldn't find any generated file. I've created another issue for that: #207
The text was updated successfully, but these errors were encountered: