Skip to content

Byte arrays possible method input #700

Answered by SquidDev
Mathilde411 asked this question in Q&A
Discussion options

You must be logged in to vote

I think you can use ByteBuffer instead of byte[] and it should all just work. Or alternatively use IArguments.getBytes.

Basically we want to expose a ByteBuffer instead of a raw array, as it works better with the implementation of strings within the Lua runtime.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Mathilde411
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #699 on January 28, 2021 14:19.