Skip to content
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

Pass strings including \0 through interop #121

Open
basdl opened this issue Aug 10, 2024 · 1 comment
Open

Pass strings including \0 through interop #121

basdl opened this issue Aug 10, 2024 · 1 comment

Comments

@basdl
Copy link

basdl commented Aug 10, 2024

Hi,

I am trying to pass \0 values through the interop layer e.g. I want to call a javascript method with an string argument. The string should act as a byte buffer (which perfectly works in Lua itself). However, when I pass it through the interop layer, the string is chopped at the first \0. Any sugesstions how to solve this? Javascript strings can also contain \0 in between.

Thanks

@ceifa
Copy link
Owner

ceifa commented Oct 20, 2024

Hey! Do you have a minimal repro for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants