Safe Haskell | None |
---|---|
Language | Haskell2010 |
An internal module that contains common decoding functionality
that is shared between Lazy and Strict decoders, as well as
generic Get
monad helpers.
Synopsis
- getBoolean :: Get Bool
- getInt :: Get Int32
- getLong :: Get Int64
- getZigZag :: (Bits i, Integral i, DecodeRaw i) => Get i
- getBytes :: Get ByteString
- getBytesLazy :: Get ByteString
- getString :: Get Text
- getFloat :: Get Float
- getDouble :: Get Double
- decodeBlocks :: Get a -> Get [a]
- sFromIntegral :: forall a b m. (Monad m, Bounded a, Bounded b, Integral a, Integral b) => a -> m b
Documentation
getBoolean :: Get Bool Source #
getZigZag :: (Bits i, Integral i, DecodeRaw i) => Get i Source #
Get an zigzag encoded integral value consuming bytes till the msb is 0.
getBytes :: Get ByteString Source #
decodeBlocks :: Get a -> Get [a] Source #
Avro encodes arrays and maps as a series of blocks. Each block starts with a count of the elements in the block. A series of blocks is always terminated with an empty block (encoded as a 0).