-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Hi,
after two years of testing, I had to say, that Eluant works very, very stable. Good job and thank you for sharing it with the community 👍
Now I have the problem, that strings in Lua and strings in C# are different and so there could be problems while converting them from Lua to C#. It would be helpfull, if we could retrive strings as byte arrays.
I encountered the problem, that strings, which are a byte array in Lua could not transfered to C#, saved, loaded again and transfered to Lua. The transfer to Lua doesn't work. The string is created in Lua:
kk = { 252, 255 } -- 0xFC, 0xFF
k = ""
for i = 1, 2 do
local x = ""
x = string.char(kk[i])
k = k .. x
end
This is a valid string in Lua, which I want to transfer to C# (to save/load it later). But if I now try to bring this string back to Lua, I get problems. The string isn't the same in Lua as before. Perhaps it has something to do with the problem in this thread: http://lists.ximian.com/pipermail/mono-devel-list/2006-March/017493.html.
So it would be nice to get/set a string in Lua by a byte array (ToArray, FromArray) instead of a string, so that no conversions take place.
Best regards,
Dirk