lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

>If I would like to change or append a few bytes in or to an 1M string,
>Lua creates a new 1M string?


If you want mutable strings, try creating them on the C side with
lua_newuserdata. However, this will only work if you do not change the size
of the string (you can always create a string longer than you need initially).