Module RPDec.Descendant

type base = {
kind : kind;
length : int;
consumed : int;
offset : int64;
hash : Hash.t;
crc : Checkseum.Crc32.t;
}
type patch = {
length : int;
consumed : int;
inserts : int;
offset : int64;
crc : Checkseum.Crc32.t;
hash : Hash.t;
descr : HDec.hunks;
}
type t =
| Root of {
base : base;
children : node list;
}
and node =
| Node of {
patch : patch;
children : node list;
}
| Leaf of patch
val get_from_absolute_offset : ztmp:Cstruct.t -> zwin:Inflate.window -> cache:((int64, int) Cache.t * (int64, kind * Cstruct.t * int * Ascendant.s) Cache.t) -> ?⁠chunk:int -> children:((int64 * Hash.t) -> int64 list) -> Cstruct.t -> pack -> int64 -> (terror) Stdlib.result Lwt.t