LUAL_PREPBUFFER(3) Library Functions Manual LUAL_PREPBUFFER(3)

luaL_prepbufferprepares a buffer luaL_Buffer(3), function indicator [-0, +0, -]

#include <lauxlib.h>

char *
luaL_prepbuffer(luaL_Buffer *B);

() returns an address to a space of size LUAL_BUFFERSIZE where you can copy a string to be added to buffer B (see luaL_Buffer(3)). After copying the string into this space you must call luaL_addsize(3) with the size of the string to actually add it to the buffer.

luaL_addsize(3), luaL_Buffer(3)

Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.

The luaL_prepbuffer() manual page is based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.

July 26, 2022 Debian