lua-users home
lua-l archive

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


>The main reason we did not use strings for buffers
>was the lack of support for changing a string's contents
>without recreating the string in memory.

You can use lua_newuserdata, which allocates a buffer and hands it back to you.
It's fully writable.
--lhf