Tests whether a FLI pointer matches a given element type.
fli
pointer-element-type-p pointer type => result
pointer⇩ |
A FLI pointer to a foreign object. |
type⇩ |
A foreign type. |
result |
A boolean. |
The function pointer-element-type-p
returns true if the element type of the foreign object pointed to by pointer has the same underlying type as type.
(setq point (fli:allocate-foreign-object :type :int)) => => #<Pointer to type :INT = #x007F3970> (fli:pointer-element-type-p point :signed) -> t
Foreign Language Interface User Guide and Reference Manual - 01 Dec 2021 19:34:58