commit 814b4a8d972ba66ecd347367119c9bf9ea0ffbd0 from: Sergey Bronnikov date: Wed Jul 27 06:59:11 2022 UTC man3: luaL_loadbuffer.3 commit - 64a7a90b0772deb3330459ac1cb8d2dc120e4971 commit + 814b4a8d972ba66ecd347367119c9bf9ea0ffbd0 blob - /dev/null blob + 08b719c6aad4c12d79bd0286d604b7ea7ac5a461 (mode 644) --- /dev/null +++ man3/luaL_loadbuffer.3 @@ -0,0 +1,29 @@ +.Dd $Mdocdate: July 24 2022 $ +.Dt LUAL_LOADBUFFER 3 +.Os +.Sh NAME +.Nm luaL_loadbuffer +.Nd loads a buffer as a Lua chunk +.Sh SYNOPSIS +.In lauxlib.h +.Ft int +.Fn luaL_loadbuffer "lua_State *L" "const char *buff" "size_t sz" "const char *name" +.Sh DESCRIPTION +.Fn luaL_loadbuffer +loads a buffer as a Lua chunk. +This function uses +.Xr lua_load 3 +to load the chunk in the buffer pointed to by +.Fa buff +with size +.Fa sz . +.Pp +This function returns the same results as +.Xr lua_load 3 . +.Fa name +is the chunk name, +used for debug information and error messages. +.Sh HISTORY +The +.Fn luaL_loadbuffer +manual page was written by Sergey Bronnikov.