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

NextPrevUpTopContentsIndex

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.

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

Pointer testing functions
pointer-element-type


LispWorks Foreign Language Interface User Guide and Reference Manual - 16 Feb 2015

NextPrevUpTopContentsIndex