LUA_WRITER(3) | Library Functions Manual | LUA_WRITER(3) |
lua_Writer
— type
of the writer function used by lua_dump(3)
#include
<lua.h>
typedef int *
lua_Writer
(lua_State
*L, const void* p,
size_t sz,
void* ud);
lua_Writer type of the writer function used by lua_dump(3). Every time it produces another piece of chunk, lua_dump(3) calls the writer, passing along the buffer to be written (p), its size (sz), and the data parameter supplied to lua_dump(3).
The writer returns an error code: 0 means no errors; any other value means an error and stops lua_dump(3) from calling the writer again.
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The lua_Writer manual page is based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 18, 2022 | Debian |