Safe Haskell | None |
---|---|
Language | Haskell2010 |
RON-Text wire format
Synopsis
- parseObject :: UUID -> ByteStringL -> Either String (Object a)
- parseStateFrame :: ByteStringL -> Either String StateFrame
- parseWireFrame :: ByteStringL -> Either String WireFrame
- parseWireFrames :: ByteStringL -> Either String [WireFrame]
- serializeObject :: Object a -> (UUID, ByteStringL)
- serializeStateFrame :: StateFrame -> ByteStringL
- serializeWireFrame :: WireFrame -> ByteStringL
- serializeWireFrames :: [WireFrame] -> ByteStringL
Documentation
parseObject :: UUID -> ByteStringL -> Either String (Object a) Source #
Parse a state frame as an object
parseStateFrame :: ByteStringL -> Either String StateFrame Source #
Parse a state frame
parseWireFrame :: ByteStringL -> Either String WireFrame Source #
Parse a common frame
parseWireFrames :: ByteStringL -> Either String [WireFrame] Source #
Parse a sequence of common frames
serializeObject :: Object a -> (UUID, ByteStringL) Source #
Serialize an object. Return object id that must be stored separately.
serializeStateFrame :: StateFrame -> ByteStringL Source #
Serialize a state frame
serializeWireFrame :: WireFrame -> ByteStringL Source #
Serialize a common frame
serializeWireFrames :: [WireFrame] -> ByteStringL Source #
Serialize a sequence of common frames