Next: , Previous: Built-In Foreign Types, Up: Top


3 Operations on Built-in Foreign Types

— Function: %foreign-type-size type => size

Return the size, in bytes, of objects having foreign type type. An error is signalled if type is not a known built-in foreign type.

— Function: %foreign-type-alignment type => alignment

Return the default alignment in bytes for structure members of foreign type type. An error is signalled if type is not a known built-in foreign type.

Implementor's note: Maybe this should take an optional keyword argument specifying an alternate alignment system, eg. :mac68k for 68000-compatible alignment on Darwin.