ron-0.12: RON
Safe HaskellNone
LanguageHaskell2010

RON.Text.Serialize

Description

RON-Text serialization

Synopsis

Documentation

serializeAtom :: Atom -> ByteStringL Source #

Serialize a context-free atom

serializeObject :: ObjectFrame a -> (UUID, ByteStringL) Source #

Serialize an object. Return object id that must be stored separately.

serializeOpenOp Source #

Arguments

:: UUID

Previous op id

-> Op

Current op

-> ByteStringL 

serializePayload :: Payload -> ByteStringL Source #

Serialize an abstract payload

serializeRawOp :: ClosedOp -> ByteStringL Source #

Serialize a context-free raw op

serializeStateFrame :: StateFrame -> ByteStringL Source #

Serialize a state frame

serializeString :: Text -> ByteStringL Source #

Serialize a string atom

serializeUuid :: UUID -> ByteStringL Source #

Serialize UUID without context (used for test)

serializeWireFrame :: WireFrame -> ByteStringL Source #

Serialize a common frame

serializeWireFrames :: [WireFrame] -> ByteStringL Source #

Serialize a sequence of common frames