Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data CompressedWord = CompressedWord {}
- fromCompressedWord :: Integral a => CompressedWord -> a
Documentation
data CompressedWord Source #
A compressed, unsigned integer. When serialized, the least significant bit is first. Bits are serialized until the next bit would be greater than the limit, or the number of bits necessary to reach the limit has been reached, whichever comes first.
fromCompressedWord :: Integral a => CompressedWord -> a Source #
Converts a CompressedWord
into any integral value. This is a lossy
conversion because it discards the compressed word's maximum value.