NextPrevUpTopContentsIndex

pointer-element-size

Function
Summary

Returns the size in bytes of the foreign object pointed to by a FLI pointer.

Package

fli

Signature

pointer-element-size pointer => size

Arguments

pointer

A FLI pointer to a foreign object.

Values

size

The size of the object pointed to by pointer .

Description

The function pointer-element-size returns the size, in bytes, of the object pointed to by pointer .

Example

In the following example a pointer to an integer is created. Then the size in bytes of the integer is returned using pointer-element-size .

(setq point (fli:allocate-foreign-object :type :int)) (fli:pointer-element-size point)
See also

pointer-element-type
size-of


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

NextPrevUpTopContentsIndex