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]


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS]
Change log CHANGELOG.md
Dependencies base (>=4.8 && <4.18), bytestring (>=0.10.6 && <0.12), ghc-prim, transformers [details]
License BSD-3-Clause
Author Andreas Klebinger
Maintainer klebinger.andreas@gmx.at
Revised Revision 2 made by AndreasK at 2022-07-14T16:10:40Z
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
Downloads 364 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-04-23 [all 1 reports]

Readme for leb128-

[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.