All Manuals > Foreign Language Interface User Guide and Reference Manual > 8 Type Reference

:unsigned FLI Type Descriptor

Summary

Converts between a Lisp integer and a foreign unsigned integer.

Package

keyword

Syntax

:unsigned &optional integer-type

integer-type ::= :byte | :char | :short | :int | :long | :long :int | :short :int

Arguments
integer-type
The type of the unsigned integer.
Description

The FLI type :unsigned converts between a Lisp integer and a foreign unsigned integer. The optional integer-type argument specifies other kinds of unsigned integer types. See Table A comparison of Lisp and C unsigned types for a comparison between Lisp and C unsigned types.

A comparison of Lisp and C unsigned types
Lisp typeFLI typeC type

integer

:unsigned

unsigned int

fixnum

:unsigned :byte

unsigned char

fixnum

:unsigned :char

unsigned char

fixnum

:unsigned :short

unsigned short

integer

:unsigned :int

unsigned int

integer

:unsigned :long

unsigned long

fixnum

:unsigned :short :int

unsigned short

integer

:unsigned :long :int

unsigned long

See also

cast-integer
:signed
2.1.1 Integral types


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