lua_newuserdata
  • References/Lua/Lua/API/Functions and Types

lua_newuserdata[-0, +1, m] void *lua_newuserdata (lua_State *L, size_t size); This function allocates

2025-01-10 15:47:30
string.pack()
  • References/Lua/Lua/Standard Libraries/String Manipulation

string.pack (fmt, v1, v2, ···) Returns a binary string containing the values v1, v2, etc. packed (that is, serialized in binary form) according to the

2025-01-10 15:47:30
string.reverse()
  • References/Lua/Lua/Standard Libraries/String Manipulation

string.reverse (s)s

2025-01-10 15:47:30
lua_pushnumber
  • References/Lua/Lua/API/Functions and Types

lua_pushnumber[-0, +1, –] void lua_pushnumber (lua_State *L, lua_Number n); Pushes a float with value n

2025-01-10 15:47:30
luaL_checktype
  • References/Lua/Lua/Auxiliary Library/Functions and Types

luaL_checktype[-0, +0, v] void luaL_checktype (lua_State *L, int arg, int t); Checks whether the

2025-01-10 15:47:30
math.random()
  • References/Lua/Lua/Standard Libraries/Mathematical Functions

math.random ([m [, n]]) When called without arguments, returns a pseudo-random float with uniform distribution in the range [0,1). When called with two integers m

2025-01-10 15:47:30
lua_KFunction
  • References/Lua/Lua/API/Functions and Types

lua_KFunction typedef int (*lua_KFunction) (lua_State *L, int status, lua_KContext ctx); Type for continuation functions (see

2025-01-10 15:47:30
lua_setallocf
  • References/Lua/Lua/API/Functions and Types

lua_setallocf[-0, +0, –] void lua_setallocf (lua_State *L, lua_Alloc f, void *ud); Changes the allocator

2025-01-10 15:47:30
string.char()
  • References/Lua/Lua/Standard Libraries/String Manipulation

string.char (···) Numeric codes are not necessarily portable across platforms.

2025-01-10 15:47:30
file:setvbuf()
  • References/Lua/Lua/Standard Libraries/Input and Output Facilities

file:setvbuf (mode [, size]) Sets the buffering mode for an output file. There are three available modes: "no": no buffering; the result of

2025-01-10 15:47:30