package carton

  1. Overview
  2. Docs

Module Dec.WSource

Memoization of map.

Instead to systematically call map to load memory-page, we memoize the call by a simple internal table of weak pointers.

Sourcetype 'fd t
Sourceand slice = {
  1. offset : int64;
  2. length : int;
  3. payload : Bigstringaf.t;
}
Sourceand 'fd map = 'fd -> pos:int64 -> int -> Bigstringaf.t
Sourceval reset : 'fd t -> unit
Sourceval make : ?sector:int64 -> 'fd -> 'fd t
Sourceval sector : 'fd t -> int64
Sourceval load : map:'fd map -> 'fd t -> int64 -> slice option
OCaml

Innovation. Community. Security.