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 [RSS] [faq] 0.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.8 && <4.16), bytestring (>=0.10.6 && <0.12), ghc-prim, transformers [details]
License BSD-3-Clause
Author Andreas Klebinger
Maintainer klebinger.andreas@gmx.at
Revised Revision 1 made by AndreasK at 2021-05-12T15:28:41Z
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 185 total (9 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

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

For package maintainers and hackage trustees

Candidates


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.