package cactus

  1. Overview
  2. Docs

Module Common.KindSource

The kind of a vertex, either a Node or a Leaf.

Modules of this type are an abstraction barrier between the in-memory and on-disk representation of the metadata.

Sourcetype t
Sourceval set : marker:(unit -> unit) -> bytes -> off:int -> t -> unit

set marker buff off t sets the field value in buff at offset off. marker is a function to mark a page as dirty.

Sourceval get : bytes -> off:int -> t
Sourceval size : int
Sourceval to_t : Btree__.Field_intf.kind -> t
Sourceval from_t : t -> Btree__.Field_intf.kind
Sourceval pp : t Fmt.t
Sourceval pp_raw : Format.formatter -> bytes -> off:int -> unit
Sourceval of_depth : int -> t

of_depth depth returns the kind of a vertex based on its depth.

Sourceval to_depth : t -> int

to_depth t returns the depth a vertex from its kind.