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
In the exports, we generate
public interface ITest { static abstract void EmptyListParam(byte[] a); }
but we probably generate
public interface ITest { static abstract void EmptyListParam(ReadOnlySpan<byte> a) }
because we don't expect the callee to modify that memory space.
This would allow us to pass the host buffer, instead of making a managed copy on the heap (and GC it later).
Note they could always make copy themself.
public static void EmptyListParam(ReadOnlySpan<byte> a) { byte[] copy = a.ToArray(); }
Originally posted by @pavelsavara in #1138 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
but we probably generate
because we don't expect the callee to modify that memory space.
This would allow us to pass the host buffer, instead of making a managed copy on the heap (and GC it later).
Note they could always make copy themself.
Originally posted by @pavelsavara in #1138 (comment)
The text was updated successfully, but these errors were encountered: