@hackage dahdit0.1.2
Binary parsing and serialization with integrated size
Installation
Dependencies (9)
- base >=4.12 && <5
- bytestring >=0.10 && <0.12
- containers >=0.6 && <0.7
- data-default >=0.7 && <0.8
- data-sword >=0.2 && <0.3
- free >=5.1 && <5.2 Show all…
Dependents (4)
@hackage/dahdit-test, @hackage/dahdit-network, @hackage/dahdit-audio, @hackage/dahdit-midi
dahdit
Binary parsing and serialization with integrated size.
This differs from binary in a few ways:
- It is required that all types implementing
Binarymust also implementByteSized. - Known-statically-sized types can implement
StaticByteSizedfor size speedups. - Examining
Putcan yield required byte size without serializing. - It uses
ShortByteStringto avoid pinned memory. - It supports parsing
PrimArrayfor fast copies of repeated chunks of primitive data. - Derivation uses
viaand notanyclassfor better control of derived instances. - Provides several additional types representing fixed-length strings or sequences (using
TypeLits).
This generally works but should be considered experimental.
(dahs and dits are signal durations in Morse code)