Next Previous Up Top Contents Index

5 Function and Macro Reference

pointer-element-size

Function

Summary

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

fli

Signature

pointer-element-size pointer => size

Arguments

pointer

An FLI pointer to a foreign object.

Values

size

The size of the object pointed to by pointer.

Description

The functionpointer-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 usingpointer-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 - 12 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker