module D : Hash.DIGEST


val input : ?cache_size:int -> Cstruct.buffer -> t

Create a pack index object. The results of find_offset are cached for upto cache_size Hash objects

val find_offset : t -> Hash.t -> int option

find_offset searches the index for the offset of the Hash object. Binary search is performed until the candidates are narrowed down to scan_thresh or less.

val mem : t -> Hash.t -> bool

mem checks if the Hash object is contained in the index object

val keys : t -> Hash.t list

keys t is the list of hash keys present in t.

module Raw : IO with type t = raw