Skip to main content

Module lua_newbuffer

Module lua_newbuffer 

Source
Expand description

Node: cxx:Function:Luau.VM:VM/src/lapi.cpp:1477:lua_newbuffer

lua_newbuffer — allocate a managed buffer object of sz bytes, push it on the stack, and return a pointer to its data. Runs a GC step and the thread write-barrier first, exactly like the C++ public API.

Functions§

lua_newbuffer