package cactus

  1. Overview
  2. Docs

Module Store.PageSource

Sourcetype t = page

The type for pages.

Sourcetype pointer = int

The type for pointers.

Sourceval kind : t -> Common.Kind.t

kind t is the kind of t, either a Node or a Leaf.

Sourceval buff : t -> bytes

buff t holds the contents of the page t.

Sourceval marker : t -> unit -> unit

marker page is the function that marks page as dirty. A page is dirty when its in memory contents are not the same as the ones on disk.

Sourceval flush : t -> unit

flush t writes the contents of t to the disk.