package carton

  1. Overview
  2. Docs
Implementation of PACKv2 file in OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

carton-0.7.2.tbz
sha256=46795855444dd8ce7cd90fc9d975516c9ea0b0f50365b25e2d672864256db692
sha512=a1a3c81cb51c61f4a85b661affd4db1aebedff678215a334fd240120622d3dbdd7d63e6cca994ec56c1a15675fe686bbf8a50233017911ce4dc44a70145fd98a

doc/carton/Carton/Dec/W/index.html

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