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; |
}
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 -> (t, error) Stdlib.result Lwt.t