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

make-integer-from-bytes Function

Summary

Converts foreign bytes back to a Lisp integer.

Package

fli

Signature

make-integer-from-bytes pointer length => integer

Arguments
pointer
A foreign pointer.
length
An integer.
Values
integer
An integer.
Description

The function make-integer-from-bytes converts length bytes starting at pointer into the Lisp integer integer. The bytes and length must have been generated by with-integer-bytes or convert-integer-to-dynamic-foreign-object.

See also

5.3 Lisp integers
with-integer-bytes
convert-integer-to-dynamic-foreign-object


Foreign Language Interface User Guide and Reference Manual - 01 Dec 2021 19:34:58