Previous: , Up: ffi call   [Index]


11.4.4 Specifying native types

The following is a list of Scheme symbols used to specify native types for both callouts and callbacks. If a type is not available on a platform: the callout and callback generators will raise an error if the associated type specifier is used.

signed-char
unsigned-char

Exact integers in the range for char and unsigned char.

signed-short
unsigned-short

Exact integers in the range for short int and unsigned short int.

signed-int
unsigned-int

Exact integers in the range for int and unsigned int.

signed-long
unsigned-long

Exact integers in the range for long and unsigned long.

signed-long-long
unsigned-long-long

Exact integers in the range for long long and unsigned long long.

float
double

Flonum.

pointer
callback

Pointer object. The symbol callback can be used to specify a pointer to a callback, but it is a full synonym of pointer.

int8_t
uint8_t

Exact integers in the range for int8_t and uint8_t.

int16_t
uint16_t

Exact integers in the range for int16_t and uint16_t.

int32_t
uint32_t

Exact integers in the range for int32_t and uint32_t.

int64_t
uint64_t

Exact integers in the range for int64_t and uint64_t.

size_t
ssize_t

Exact integers in the range for size_t and ssize_t.

off_t

Exact integers in the range for off_t.

ptrdiff_t

Exact integers in the range for ptrdiff_t.