All Manuals > Foreign Language Interface User Guide and Reference Manual > 7 Function, Macro and Variable Reference

pointer-element-type-p Function

Summary

Tests whether a FLI pointer matches a given element type.

Package

fli

Signature

pointer-element-type-p pointer type => result

Arguments
pointer
A FLI pointer to a foreign object.
type
A foreign type.
Values
result
A boolean.
Description

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.

Examples
(setq point (fli:allocate-foreign-object :type :int))
=>
=> #<Pointer to type :INT = #x007F3970>
 
(fli:pointer-element-type-p point :signed)
->
t
See also

3.2 Pointer testing functions
pointer-element-type


Foreign Language Interface User Guide and Reference Manual - 01 Dec 2021 19:34:58