dreamworkAPI
Ctrl K
GitHub
libraryDocs / ffi

ffi

librarysharedmenusource

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

NameTypeDescription
SANDBOXEDbooleantrue if the FFI is sandboxed: C and load are unavailable, string, copy and fill are emulated (or nil without string.buffer).
Generated from the dreamwork meta branch.