Next: , Up: objects misc   [Index]


13.26.1 Macros handling memory-block

Preprocessor Macro: ikptr_t IK_MBLOCK_POINTER (ikptr_t obj)

Given an instance of memory-block, return a pointer object being the value of its pointer field.

Preprocessor Macro: ikptr_t IK_MBLOCK_SIZE (ikptr_t obj)

Given an instance of memory-block, return an exact integer being the value of its size field. Notice that the returned value can be either a fixnum or a bignum.

Preprocessor Macro: size_t IK_MBLOCK_SIZE_T (ikptr_t obj)

Given an instance of memory-block, return the value of the size field as size_t.

Preprocessor Macro: void * IK_MBLOCK_DATA_VOIDP (ikptr_t obj)

Given an instance of memory-block, return a void * pointer referencing the first byte of data.

Preprocessor Macro: char * IK_MBLOCK_DATA_CHARP (ikptr_t obj)

Given an instance of memory-block, return a charp * pointer referencing the first byte of data.