wasmoon icon indicating copy to clipboard operation
wasmoon copied to clipboard

Pass strings including \0 through interop

Open basdl opened this issue 1 year ago • 1 comments

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

basdl avatar Aug 10 '24 11:08 basdl

Hey! Do you have a minimal repro for this?

ceifa avatar Oct 20 '24 00:10 ceifa