Module Dmc_cbor.Make

Parameters

Signature

module Dmc = Dmc
type tree = Dmc.tree
val to_cbor : Dmc.ContainerIdentifier.t -> ?⁠objects:bool -> ?⁠blocks:bool -> tree -> Cbor.t Lwt.t

to_cbor container_id ~objects ~blocks tree returns a CBOR serialization of the replica state. If objects is false, replica objects are not included. If blocks is false, replica blocks are not included.

val to_binary : Dmc.ContainerIdentifier.t -> ?⁠objects:bool -> ?⁠blocks:bool -> tree -> string Lwt.t

to_binary container_id ~objects ~blocks tree returns a CBOR serialization (as string) of the replica state. If objects is false, replica objects are not included.If blocks is false, replica blocks are not included.

val load : string -> tree -> tree Lwt.t

load dump tree loads the CBOR dump of the replica in dump into the tree.