codec-libevent-0.1.2: Cross-platform structure serialisation

Codec.Libevent.Class

Documentation

class TaggedStructure a whereSource

Methods

empty :: aSource

Return a structure filled with default values

serialise :: a -> ByteStringSource

Serialise a structure to a strict bytestring

deserialise :: ByteString -> Either String aSource

Attempt to deserialise a bytestring, returning either an error message or a structure