package chamelon

  1. Overview
  2. Docs

Module Chamelon.BlockSource

Sourcetype t
Sourcemodule IdSet : Set.S with type elt := int
Sourceval entries : t -> Entry.t list
Sourceval commits : t -> Commit.t list
Sourceval revision_count : t -> int
Sourceval split : t -> (int64 * int64) -> t * t
Sourceval linked_blocks : t -> Entry.link list
Sourceval hardtail : t -> (int64 * int64) option
Sourceval of_commits : hardtail:Entry.t option -> revision_count:int -> Commit.t list -> t
Sourceval of_entries : revision_count:int -> Entry.t list -> t
Sourceval compact : t -> t
Sourceval add_commit : t -> Entry.t list -> t
Sourceval ids : t -> IdSet.t
Sourcetype write_result = [
  1. | `Ok
  2. | `Split
  3. | `Split_emergency
]
Sourceval into_cstruct : program_block_size:int -> Cstruct.t -> t -> write_result
Sourceval to_cstruct : program_block_size:int -> block_size:int -> t -> Cstruct.t * write_result
Sourceval of_cstruct : program_block_size:int -> Cstruct.t -> (t, [ `Msg of string ]) result
OCaml

Innovation. Community. Security.