Module Random_access.Patch

type t = {
length : int;
consumed : int;
offset : int64;
crc : Checkseum.Crc32.t;
hunks : Diff.t list;
descr : Hunk.hunks;
}
val get_from_absolute_offset : ztmp:Cstruct.t -> zwin:Inflate.window -> ?⁠chunk:int -> ?⁠htmp:Cstruct.t -> pack -> int64 -> (terror) Stdlib.result Lwt.t
type s = {
kind : kind;
length : int;
consumed : int;
inserts : int;
offset : int64;
crc : Checkseum.Crc32.t;
hash : Hash.t;
raw : Cstruct.t;
descr : Hunk.hunks;
}
val apply_from_absolute_offset : ztmp:Cstruct.t -> zwin:Inflate.window -> ?⁠chunk:int -> (kind * Cstruct.t) -> Cstruct.t -> pack -> int64 -> (serror) Stdlib.result Lwt.t