lua-users home
lua-l archive

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


>   <some-prefix><size><data1><data2>...<dataN><suffix>
> 
> The question is, is it possible, at least at "implementation-specific"
> level to insert the number of elements after I have added all the data
> to buffer?

Push the prefix and nil and then open a buffer for the data. At the end,
close the buffer, lua_replace the nil with the size and concat the 3 strings.