how do i turn a Vec<u8> into a Lua String #250
Unanswered
walksanatora
asked this question in
Q&A
Replies: 3 comments 9 replies
-
(the reason why is because i need to read all the bytes in rust, then send them to lua) |
Beta Was this translation helpful? Give feedback.
0 replies
-
BString |
Beta Was this translation helpful? Give feedback.
0 replies
-
let data: Vec<u8> = b"hello world".to_vec();
let lua_string = lua.create_string(&data)?; is this what you meant? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i tried returning a Box, fails
i tried returning a Box<[u8]> failed
i have no ideas
Beta Was this translation helpful? Give feedback.
All reactions