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

t or nil .

Description

The function pointer-element-type-p returns t 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 :long)
->
t
See also

pointer-element-type


LispWorks Foreign Language Interface User Guide and Reference Manual - 27 Mar 2005

NextPrevUpTopContentsIndex