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

NextPrevUpTopContentsIndex

convert-integer-to-dynamic-foreign-object

Function
Summary

Converts a Lisp integer to foreign bytes.

Package

fli

Signature

convert-integer-to-dynamic-foreign-object integer => pointer, length

Arguments

integer

An integer.

Values

pointer

A foreign pointer.

length

An integer.

Description

The function convert-integer-to-dynamic-foreign-object makes a dynamic foreign object containing the bytes of integer and returns pointer pointing to the first byte of that object and length which is the number of bytes in that object. The layout of the bytes is unspecified, but the bytes and the length are sufficient to reconstruct integer by calling make-integer-from-bytes.

See also

Lisp integers
with-integer-bytes
make-integer-from-bytes


LispWorks Foreign Language Interface User Guide and Reference Manual - 29 Sep 2017

NextPrevUpTopContentsIndex