get package:cereal
Decode a value in the Get monad
Decode a value in the Get monad
The Get monad. A monad for efficiently building structures from strict
ByteStrings
The Get monad is an Exception and State monad.
An efficient
get method for strict ByteStrings. Fails if fewer
than
n bytes are left in the input. This function creates a
fresh copy of the underlying bytes.
Pull n bytes from the input, as a strict ByteString.
Read an Either, in the following format: Word8 (0 for Left, anything
else for Right) element a when 0, element b otherwise
Get an IArray in the following format: index (lower bound) index
(upper bound) Word64 (big endian format) element 1 ... element n
Read a Int16 in big endian format
Read a Int16 in little endian format
Read a Int32 in big endian format
Read a Int32 in little endian format
Read a Int64 in big endian format
Read a Int64 in little endian format
Read a Int8 from the monad state
Read as a list of pairs of int and element.
Get a list in the following format: Word64 (big endian format) element
1 ... element n
Read as a list of pairs of key and element.
Read in a Maybe in the following format: Word8 (0 for Nothing,
anything else for Just) element (when Just)
Read in a length and then read a nested structure of that length.
Get a sequence in the following format: Word64 (big endian format)
element 1 ... element n
Read as a list of elements.