ouroboros-network:protocols
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.ObjectDiffusion.Codec

Synopsis

Documentation

codecObjectDiffusion Source #

Arguments

:: forall objectId object (m :: Type -> Type). MonadST m 
=> (objectId -> Encoding)

encode objectId

-> (forall s. Decoder s objectId)

decode objectId

-> (object -> Encoding)

encode object

-> (forall s. Decoder s object)

decode object

-> Codec (ObjectDiffusion objectId object) DeserialiseFailure m ByteString 

codecObjectDiffusionId :: forall objectId object (m :: Type -> Type). Monad m => Codec (ObjectDiffusion objectId object) CodecFailure m (AnyMessage (ObjectDiffusion objectId object)) Source #

byteLimitsObjectDiffusion Source #

Arguments

:: SizeInBytes

Maximum encoded ID list message size.

-> SizeInBytes

Maximum encoded object list message size.

-> (bytes -> Word) 
-> ProtocolSizeLimits (ObjectDiffusion objectId object) bytes 

Byte limits for complete object and ID list messages.

Include all elements and four CBOR framing bytes: the outer list header, message tag, indefinite list header and break. The ID limit covers both requests and replies.