attoparsec-varword-0.1.0.0: Variable-length integer decoding for Attoparsec

Safe HaskellSafe
LanguageHaskell2010

Data.Attoparsec.VarWord.Internal

Description

Internal implementation of variable-length decoding. This API is not guaranteed to be stable.

Synopsis

Documentation

varWordBe' :: (Bits a, Integral a) => a -> a -> Parser a Source #

Internal implementation of big-endian variable-length decoding, exposing the accumulator and how much to increment each continuation chunk.

varWordLe' :: (Bits a, Integral a) => Int -> a -> Parser a Source #

Internal implementation of little-endian variable-length decoding, exposing the accumulator and the shift for each chunk.