Skip to content

Please add LISP-BINARY #1208

@heegaiximephoomeeghahyaiseekh

Description

Lisp-Binary is a library for reading and writing complex binary data formats.

https://github.com/heegaiximephoomeeghahyaiseekh/lisp-binary

It provides the DEFBINARY macro, which provides a compact syntax similar to
that of DEFSTRUCT to specify the format. The data is read into, and written from Lisp struct objects.

It has built-in support for any size integer in both byte orders, floating point numbers in IEEE half, single, double, quadruple, and octuple precisions, and automatic handling of Pascal-style counted arrays, C-style terminated strings, and sub-byte bit fields. It can be extended by providing it with runtime reader/writer functions to read specific fields.

It also provides primitive functions to read and write binary representations of integers and floating-point numbers, and a special Gray stream class from which it is possible to read or write one bit at a time. When using these streams, the integer primitives can read and write integer sizes that involve fractions of a byte.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions