FFI module

Core framework Console Desktop

Rule Description
Lua to C Defines how the C FFI module convert Lua values to their C equivalent
C to Lua Defines how the C FFI module convert C values to their Lua equivalent
Property Description Access Type
c.NULL Get a NULL C value readonly Value
Function Description Return value
C.type() Gets the type of a C Object string
C.sizeof() Gets the memory size of a C Object number
C.uchar() Create a C Value of type `unsigned char` Value
C.char() Create a C Value of type `char` Value
C.wchar_t() Create a C Value of type `wchar_t` Value
C.short() Create a C Value of type `short` Value
C.ushort() Create a C Value of type `unsigned short` Value
C.int() Create a C Value of type `` Value
C.uint() Create a C Value of type `unsigned int` Value
C.long() Create a C Value of type `long` Value
C.ulong() Create a C Value of type `unsigned long` Value
C.longlong() Create a C Value of type `long long` Value
C.ulonglong() Create a C Value of type `unsigned long long` Value
C.float() Create a C Value of type `float` Value
C.double() Create a C Value of type `double` Value
C.size_t() Create a C Value of type `size_t` Value
C.int16() Create a C Value of type `int16_t` Value
C.int32() Create a C Value of type `int32_t` Value
C.int64_t() Create a C Value of type `int64_t` Value
C.uint16() Create a C Value of type `unsigned int16_t` Value
C.uint32() Create a C Value of type `unsigned int32_t` Value
C.uint64_t() Create a C Value of type `unsigned int64_t` Value
C.string() Create a C string (NULL terminated sequence of `char`) Value
C.wstring() Create a C wide string (NULL terminated sequence of `wchar_t`) Value
Object Description
Library Object representation of a Windows DLL
Value Object representation of a C value
Struct Object representation a C struct
Union Object representation a C union
Pointer Object representation a C pointer
[ ] Array Object representation a C array