package cactus

  1. Overview
  2. Docs

A pointer is an offset inside 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 : int -> t
val from_t : t -> int
val pp : t Fmt.t
val pp_raw : Format.formatter -> bytes -> off:int -> unit
OCaml

Innovation. Community. Security.