[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: A luaL_Buffer question
- From: Marc Balmer <marc@...>
- Date: Thu, 2 Nov 2017 08:41:27 +0100
Is it possible to create a luaL_Buffer over several calls to Lua functions? E.g. like in the following pseudo code:
d = foo.new() -- 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?