leb128: LEB128 encoding logic for and in Haskell

[ bsd3, codec, library ] [ Propose Tags ]

Encode and decode integral numbers to and from sequences of bytes using LEB128.


[Skip to Readme]
Versions [faq] 0.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.8 && <4.15), bytestring (>=0.10.6 && <0.10.11), ghc-prim, transformers [details]
License BSD-3-Clause
Author Andreas Klebinger
Maintainer klebinger.andreas@gmx.at
Category Codec
Home page https://github.com/AndreasPK/leb128/issues
Source repo head: git clone https://github.com/AndreasPK/leb128
Uploaded by AndreasK at 2020-04-23T18:11:48Z
Distributions NixOS:0.1.0.0
Downloads 52 total (36 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2020-04-23 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for leb128-0.1.0.0

[back to package description]

General purpose library for encoding values to LEB128 encoded byte sequences.

This library provides a generic interface to the core (S)LEB128 encoding algorithm.

Provided specific interfaces:

  • A specializations based on bytestring in "Codec.LEB128".
  • A specialization over lists in "Codec.LEB128.List".
  • Other implementations should be easy to derive from the interface provided in "Codec.LEB128.Generic"

Alternative implementations

The package leb128-cereal provides a way to decode using a cereal parser using the same algorithm.