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