lua-users home
lua-l archive

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

Is it possible to create a luaL_Buffer over several calls to Lua functions?  E.g. like in the following pseudo code:

d = -- Does a luaL_buffinit() in the C code
d:func_a() -- Adds some values to the buffer

-- do a lot of other stuff

d:func_b() -- Ass some more values to the buffer

-- do more stuff

d:flush() --  Does something with the buffer

Or must all buffer operations be finished when I return from C code?