-
Notifications
You must be signed in to change notification settings - Fork 36
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
How to copy byte[] from Java to Rust #96
Comments
Unfortunately, having Maybe the time has come to deal with it. Until this is implemented, I am afraid there is no way to copy Java Lists or Maps to rust without deserialization. |
@astonbitecode thanks for the quick response. I'm wondering if you are open to a PR for handling just primitive arrays. I can put up one, since it's needed for my short-term requirements. |
Sure, please go on for the PR. |
Thank you! I just created #97 Can you please have a look? |
Implemented in PR #97. Thanks @pickleburger |
Hello,
I have a method in Java which returns a
byte[]
. How can I copy the return value into a Rust byte array, e.g.Vec<u8>
efficiently (with minimal serialization/deserialization)?Thanks!
The text was updated successfully, but these errors were encountered: