package cactus

  1. Overview
  2. Docs

Magic strings are used to mark the header of a btree or of a page.

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

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 : string -> t
val from_t : t -> string
val pp : t Fmt.t
val pp_raw : Format.formatter -> bytes -> off:int -> unit
OCaml

Innovation. Community. Security.