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 byte[] data structure from Java to Lua #210

Open
ocean-vivaforever opened this issue Sep 29, 2024 · 1 comment
Open

pass byte[] data structure from Java to Lua #210

ocean-vivaforever opened this issue Sep 29, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ocean-vivaforever
Copy link

I want to pass a byte[] data structure from Java to a Lua function and handle it as a string.
How should I do this?
I am getting an error when using LuaValue.call(byte[]) on the Lua side,
the response is "not string type"
please help

My Lua environment is LuaJIT

@ocean-vivaforever ocean-vivaforever added the bug Something isn't working label Sep 29, 2024
@gudzpoz gudzpoz added enhancement New feature or request and removed bug Something isn't working labels Oct 6, 2024
@gudzpoz
Copy link
Owner

gudzpoz commented Oct 6, 2024

This is not currently supported. (See https://gudzpoz.github.io/luajava/conversions.html#java-to-lua .) I will try to add something similar to lua_pushlstring soon.

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

No branches or pull requests

2 participants