ffi
The LuaJIT FFI library, allows calling external C functions and using C data structures from pure Lua code.
Available only if the server/client has access to it (e.g. via HolyLib), otherwise ffi is nil.
Some builds (e.g. HolyLib's LuaJIT) sandbox it: string, copy, fill and load are removed and ffi.C symbol lookups throw, see ffi.SANDBOXED. string, copy and fill are rebuilt on top of string.buffer when it is available.
Fields
| Name | Type | Description |
|---|---|---|
SANDBOXED | boolean | true if the FFI is sandboxed: C and load are unavailable, string, copy and fill are emulated (or nil without string.buffer). |