Module: Fiddle::Types

Defined in:
lib/fiddle/ffi_backend.rb,
ext/fiddle/fiddle.c

Constant Summary collapse

VOID =

C type - void

INT2NUM(TYPE_VOID)
VOIDP =

C type - void*

INT2NUM(TYPE_VOIDP)
CHAR =

C type - char

INT2NUM(TYPE_CHAR)
UCHAR =

C type - unsigned char

INT2NUM(TYPE_UCHAR)
SHORT =

C type - short

INT2NUM(TYPE_SHORT)
USHORT =

C type - unsigned short

INT2NUM(TYPE_USHORT)
INT =

C type - int

INT2NUM(TYPE_INT)
UINT =

C type - unsigned int

INT2NUM(TYPE_UINT)
LONG =

C type - long

INT2NUM(TYPE_LONG)
ULONG =

C type - long

INT2NUM(TYPE_ULONG)
LONG_LONG =

C type - long long

INT2NUM(TYPE_LONG_LONG)
ULONG_LONG =

C type - long long

INT2NUM(TYPE_ULONG_LONG)
FLOAT =

C type - float

INT2NUM(TYPE_FLOAT)
DOUBLE =

C type - double

INT2NUM(TYPE_DOUBLE)
VARIADIC =

C type - …

INT2NUM(TYPE_VARIADIC)
CONST_STRING =

C type - const char* (‘0’ terminated const char*)

INT2NUM(TYPE_CONST_STRING)
BOOL =
11
INT8_T =

C type - int8_t

INT2NUM(TYPE_INT8_T)
UINT8_T =

C type - uint8_t

INT2NUM(TYPE_UINT8_T)
INT16_T =

C type - int16_t

INT2NUM(TYPE_INT16_T)
UINT16_T =

C type - uint16_t

INT2NUM(TYPE_UINT16_T)
INT32_T =

C type - int32_t

INT2NUM(TYPE_INT32_T)
UINT32_T =

C type - uint32_t

INT2NUM(TYPE_UINT32_T)
INT64_T =

C type - int64_t

INT2NUM(TYPE_INT64_T)
UINT64_T =

C type - uint64_t

INT2NUM(TYPE_UINT64_T)
SSIZE_T =

C type - ssize_t

INT2NUM(TYPE_SSIZE_T)
SIZE_T =

C type - size_t

INT2NUM(TYPE_SIZE_T)
PTRDIFF_T =

C type - ptrdiff_t

INT2NUM(TYPE_PTRDIFF_T)
INTPTR_T =

C type - intptr_t

INT2NUM(TYPE_INTPTR_T)
UINTPTR_T =

C type - uintptr_t

INT2NUM(TYPE_UINTPTR_T)