Returns the alignment in bytes of a foreign type.
fli
align-of type-name => alignment
type-name⇩ |
A foreign type whose alignment is to be determined. |
alignment |
The alignment of the foreign type type-name in bytes. |
The function align-of
returns the alignment in bytes of the foreign language type named by type-name.
The following example shows types with various alignments.
(fli:align-of :char) => 1 (fli:align-of :int) => 4 (fli:align-of :double) => 8 (fli:align-of :pointer) => 4
Foreign Language Interface User Guide and Reference Manual - 01 Dec 2021 19:34:58