|(require (planet murphy/packed-io/number))|
This module provides packings of data represented as numeric values of a fixed size.
|() → any/c|
|( v) → void?|
|v : any/c|
Parameter that determines whether data is stored in big-endian format during packing or unpacking.
Defaults to the system’s native endianness (system-big-endian?).
Produces a wrapped version of packing that sets ( #t) while packing or unpacking.
Produces a wrapped version of packing that sets ( #f) while packing or unpacking.
Produces a wrapped version of packing that sets ( (system-big-endian?)) while packing or unpacking.
Produces a packing for integral numbers into size bytes. signed? determines whether the packed values are signed or unsigned.
Standard integer packings with 8, 16, 32 and 64 bits representation size. The packings whose names start with u are unsigned, the others are signed.
Aliases for the standard integer packings with friendly names: byte is 8 bits, short is 16 bits, int is 32 bits and long is 64 bits.
Produces a packing for IEEE floating point numbers into size bytes.
Standard floating point packings: has 32 bits, has 64 bits representation size.
Produces a packing of characters as size bytes long unsigned integers.
Standard character packings: has 8 bits, has 16 bits representation size.
Single byte packing of boolean values. #f is represented by 0, any other value maps to 1 while packing and any other packed number maps to #t when unpacking.