LUAL_LOADBUFFER(3) Library Functions Manual LUAL_LOADBUFFER(3)

luaL_loadbufferloads a buffer as a Lua chunk, function indicator [-0, +1, m]

#include <lauxlib.h>

int
luaL_loadbuffer(lua_State *L, const char *buff, size_t sz, const char *name);

() loads a buffer as a Lua chunk. This function uses lua_load(3) to load the chunk in the buffer pointed to by buff with size sz.

This function returns the same results as lua_load(3). name is the chunk name, used for debug information and error messages.

lua_load(3)

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

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

July 24, 2022 Debian