ron-0.3: RON, RON-RDT, and RON-Schema

Safe HaskellNone
LanguageHaskell2010

RON.Text

Description

RON-Text wire format

Synopsis

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