zigzag: Zigzag encoding of integers into unsigned integers.

[ bsd3, data, library ] [ Propose Tags ]

Zigzag encoding is usually a precursor to a varint encoding such as LEB128. It has the advantage that numbers nearer zero are represented with only the lower-order bits set.

[Skip to Readme]


[Index] [Quick Jump]


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


  • No Candidates
Versions [RSS]
Change log CHANGELOG.md
Dependencies base (>=4.11.1 && <4.18) [details]
License BSD-3-Clause
Copyright 2022 Eric Demko
Author Eric Demko
Maintainer edemko@layer3com.com
Revised Revision 1 made by edemko at 2022-09-20T19:16:56Z
Category Data
Home page https://github.com/byteverse/zigzag
Bug tracker https://github.com/byteverse/zigzag/issues
Uploaded by edemko at 2022-01-31T15:48:31Z
Distributions LTSHaskell:, NixOS:, Stackage:
Reverse Dependencies 3 direct, 97 indirect [details]
Downloads 1277 total (45 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for zigzag-

[back to package description]


Zig-Zag encoding of integers into natural numbers. This encoding scheme has the advantage that LEB128, which is normally only specified for unsigned integers, will naturally represent small-magnitude signed integers (positive or negative) in few bytes.