(rontolisp) docs
← Functions

ffi:align

(ffi:align type)

Answers the alignment in bytes a foreign type requires. A structure's alignment is the widest of its members', which is what the padding rule ffi:size applies is built on.

Alignment and size are asked separately because a struct passed by value needs both to be right.