bpack: the Binary PACKing library
bpack is a tiny (single header!) C library which emulates the features of
Python's struct library. It allows the reading of densely packed binary formats
using format strings, a la scanf.
All tokens listed in bpack_format_types are supported, with available byte
orderings listed in enum bpack_byte_orders. Note that in addition to the < and
> flags, ! is available as an alias to >.
All whitespace is ignored by the parser and a decimal number preceding a flag
will expand to that number of the given flag, except packed into/out of an
array. Further reference and some examples are available at
This library WON'T work if your platform does not provide u*int(16|32|64)_t