dahdit: Binary parsing and serialization with integrated size

[ bsd3, data, library ] [ Propose Tags ]
Versions [RSS] 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.2.0, 0.3.0, 0.5.0, 0.5.1
Dependencies base (>=4.12 && <5), bytestring (>=0.11 && <0.12), containers (>=0.6 && <0.7), data-default (>=0.7 && <0.8), data-sword (>=0.2 && <0.3), free (>=5.1 && <5.2), mtl (>=2.2 && <2.3), primitive (>=0.7 && <0.9), transformers (>=0.5 && <0.6), vector (>=0.12 && <0.13) [details]
License BSD-3-Clause
Copyright (c) 2022 Eric Conlon
Author Eric Conlon
Maintainer ejconlon@gmail.com
Category Data
Home page https://github.com/ejconlon/dahdit#readme
Bug tracker https://github.com/ejconlon/dahdit/issues
Source repo head: git clone https://github.com/ejconlon/dahdit
Uploaded by ejconlon at 2023-05-12T20:05:19Z
Distributions
Reverse Dependencies 3 direct, 0 indirect [details]
Downloads 256 total (22 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-05-12 [all 1 reports]

Readme for dahdit-0.3.0

[back to package description]

dahdit

Binary parsing and serialization with integrated size.

(dahs and dits are signal durations in Morse code)

This differs from binary in a few ways:

  • It supports parsing from (or rendering into) pinned or unpinned memory.
  • It uses ByteArray internally to avoid generating new or retaining references to old pinned memory.
  • Examining Put can yield required byte size without serializing.
  • Derivation uses via and not anyclass for better control of derived instances.
  • Optionally, types implementing Binary can also implement or derive ByteSized for size calculation.
  • Known-statically-sized types can implement StaticByteSized for size speedups.
  • Provides several additional types representing fixed-length strings or sequences (using TypeLits).