package cactus

  1. Overview
  2. Docs

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

type t
val 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.

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

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

val to_depth : t -> int

to_depth t returns the depth a vertex from its kind.

OCaml

Innovation. Community. Security.