decode package:serialise

Definition of a given Decoder for a type.
Definition of a given Decoder for a type.
Utility to support specialised decoding for some list type - used for Char/String instances in this package.
A utility function to construct a Decoder for maps.
Decode field
Generic decoder for vectors. Its intended use is to allow easy definition of Serialise instances for custom vector
Decode a bool.
Attempt to decode a Break token, and if that was successful, return True. If the token was of any other type, return False.
Decode a string of bytes as a ByteArray. Also note that this will eagerly copy the content out of the input to ensure that the input does not leak in the event that the ByteArray is live but not forced.
Decode a string of bytes as a ByteString.
Decode a token marking the beginning of an indefinite length set of bytes.
Decode a Double.
Decode a Float.
Decode an Int.
Decode an Int16.
Decode an Int32.
Decode an Int64.
Decode an Int8.
Decode an Integer.
Decode the length of a list.
Decode a token marking the beginning of a list of indefinite length.
Attempt to decode a list length using decodeListLen, and ensure it is exactly the specified length, or fail.
Attempt to decode a token for the length of a finite, known list, or an indefinite list. If Nothing is returned, then an indefinite length list occurs afterwords. If Just x is returned, then a list of length x is encoded.
Decode the length of a map.
Decode a token marking the beginning of a map of indefinite length.