Casts an integer to a given type.
fli
cast-integer integer type => result
integer⇩ |
A Lisp integer. |
type⇩ |
A foreign type. |
result |
A Lisp integer. |
The function cast-integer
casts the integer integer to the foreign type type.
type must be a FLI integer type, either primitive or derived.
(format nil "~B" (fli:cast-integer -1 '(:unsigned :int))) => "11111111111111111111111111111111"
Foreign Language Interface User Guide and Reference Manual - 01 Dec 2021 19:34:58