carton
Dec.W
map
carton.thin
Instead to systematically call map to load memory-page, we memoize the call by a simple internal table of weak pointers.
type 'fd t
and slice = {
offset : int64;
length : int;
payload : Bigstringaf.t;
}
and 'fd map = 'fd -> pos:int64 -> int -> Bigstringaf.t
val reset : 'fd t -> unit
val make : ?sector:int64 -> 'fd -> 'fd t
val sector : 'fd t -> int64
val load : map:'fd map -> 'fd t -> int64 -> slice option