Common Lisp Package: BINIO

README:

FUNCTION

Public

Undocumented

DECODE-DOUBLE-FLOAT (BUFFER ENDIAN &OPTIONAL (START 0))

DECODE-DOUBLE-FLOAT-BE (BUFFER &OPTIONAL (START 0))

DECODE-DOUBLE-FLOAT-LE (BUFFER &OPTIONAL (START 0))

DECODE-FLOAT-BE (BUFFER &OPTIONAL (START 0))

DECODE-FLOAT-LE (BUFFER &OPTIONAL (START 0))

DECODE-SINGLE-FLOAT (BUFFER ENDIAN &OPTIONAL (START 0))

DECODE-SINT (BUFFER ENDIAN &OPTIONAL (START 0) (BITS 32))

DECODE-SINT32-BE (BUFFER &OPTIONAL (START 0))

DECODE-SINT32-LE (BUFFER &OPTIONAL (START 0))

DECODE-SINT64-BE (BUFFER &OPTIONAL (START 0))

DECODE-SINT64-LE (BUFFER &OPTIONAL (START 0))

DECODE-SVARINT (BUFFER START)

DECODE-UINT (BUFFER ENDIAN &OPTIONAL (START 0) (BITS 32))

DECODE-UINT32-BE (BUFFER &OPTIONAL (START 0))

DECODE-UINT32-LE (BUFFER &OPTIONAL (START 0))

DECODE-UINT64-BE (BUFFER &OPTIONAL (START 0))

DECODE-UINT64-LE (BUFFER &OPTIONAL (START 0))

DECODE-UTF8 (BUFFER &KEY (STRING-START 0) STRING (BUFFER-START 0) (BUFFER-END (LENGTH BUFFER)))

DECODE-UVARINT (BUFFER START)

ENCODE-DOUBLE-FLOAT (VAL ENDIAN &OPTIONAL BUFFER (START 0))

ENCODE-INT (VAL ENDIAN &OPTIONAL BUFFER (START 0) (BITS 32))

ENCODE-SINGLE-FLOAT (VAL ENDIAN &OPTIONAL BUFFER (START 0))

ENCODE-SVARINT (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR (SVARINT-SIZE VALUE))) (START 0))

ENCODE-UTF8 (STRING &KEY (STRING-START 0) (STRING-END (LENGTH STRING)) BUFFER (BUFFER-START 0))

ENCODE-UVARINT (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR (UVARINT-SIZE VALUE))) (START 0))

MAKE-OCTET-VECTOR (COUNT)

OCTET-VECTOR (&REST ARGS)

SVARINT-SIZE (VALUE)

UTF8-SIZE (STRING)

UVARINT-SIZE (VALUE)

Private

SCARY-DOUBLE-FLOAT-BITS (G1976)

Use CFFI to extract the bits of val by a C-like cast.

SCARY-MAKE-DOUBLE-FLOAT (G1992)

Use CFFI to extract the bits of val by a C-like cast.

SCARY-MAKE-SINGLE-FLOAT (G1957)

Use CFFI to extract the bits of val by a C-like cast.

SCARY-SINGLE-FLOAT-BITS (G1941)

Use CFFI to extract the bits of val by a C-like cast.

Undocumented

DECODE-SINT16-BE (BUFFER &OPTIONAL (START 0))

DECODE-SINT16-LE (BUFFER &OPTIONAL (START 0))

DECODE-UINT16-BE (BUFFER &OPTIONAL (START 0))

DECODE-UINT16-LE (BUFFER &OPTIONAL (START 0))

ENCODE-DOUBLE-BE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 8)) (START 0))

ENCODE-DOUBLE-LE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 8)) (START 0))

ENCODE-FLOAT-BE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 4)) (START 0))

ENCODE-FLOAT-LE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 4)) (START 0))

ENCODE-SINT16-BE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 2)) (START 0))

ENCODE-SINT16-LE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 2)) (START 0))

ENCODE-SINT32-BE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 4)) (START 0))

ENCODE-SINT32-LE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 4)) (START 0))

ENCODE-SINT64-BE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 8)) (START 0))

ENCODE-SINT64-LE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 8)) (START 0))

ENCODE-UINT16-BE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 2)) (START 0))

ENCODE-UINT16-LE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 2)) (START 0))

ENCODE-UINT32-BE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 4)) (START 0))

ENCODE-UINT32-LE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 4)) (START 0))

ENCODE-UINT64-BE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 8)) (START 0))

ENCODE-UINT64-LE (VALUE &OPTIONAL (BUFFER (MAKE-OCTET-VECTOR 8)) (START 0))

NEEDS-BYTESWAP (ENDIAN)

READ-FILE-OCTETS (FILESPEC &KEY LIMIT)

TEST

VARINT-UNZIGZAG (VALUE)

VARINT-ZIGZAG (VALUE)

MACRO

Private

Undocumented

DEF-CFFI-CAST (NAME FROM-LISP-TYPE FROM-C-TYPE TO-C-TYPE)

DEF-DECODER (NAME C-TYPE LISP-TYPE ENDIAN)

DEF-DECODER-CFFI (C-TYPE SWAP)

DEF-DECODER-SBCL (C-TYPE)

DEF-ENCODER (NAME C-TYPE LISP-TYPE ENDIAN)

DEF-ENCODER-CFFI (C-TYPE SWAP)

DEF-ENCODER-SBCL (C-TYPE)