Name
size-of-foreign-type — Returns the number of data bytes used by a foreign object type.
Macro
Syntax
size-of-foreign-type
ftype
Arguments and Values
ftype
A foreign type specifier. This parameter is evaluated.
Description
Returns the number of data bytes used by a foreign object type. This does not include any Lisp storage overhead.
Examples
(size-of-foreign-object :unsigned-byte)
=> 1
(size-of-foreign-object 'my-100-byte-vector-type)
=> 100
Exceptional Situations
None.