Safe Haskell | None |
---|---|
Language | Haskell2010 |
Implementations of BoundedPrim
for several variable-length integer
encodings. Rather than use these directly, consider the higher level
Data.ByteString.Builder.VarNum Builder
interface.
- varWordBe :: forall a. (Bits a, Integral a, Storable a) => BoundedPrim a
- denseVarWordBe :: forall a. (Bits a, Integral a, Storable a) => BoundedPrim a
- varWordLe :: forall a. (Bits a, Integral a, Storable a) => BoundedPrim a
Documentation
varWordBe :: forall a. (Bits a, Integral a, Storable a) => BoundedPrim a Source #
BoundedPrim
for big-endian (most significant chunk first) variable length
encoding
denseVarWordBe :: forall a. (Bits a, Integral a, Storable a) => BoundedPrim a Source #
BoundedPrim
for big-endian (most significant chunk first) variable length
encoding where the continuation bit is also reused to pack information
slightly more densely.
varWordLe :: forall a. (Bits a, Integral a, Storable a) => BoundedPrim a Source #
BoundedPrim
for little-endian (least significant chunk first) variable
length encoding