type error =
The type error.
val make : ?cache:int -> Cstruct.t -> (t, error) Stdlib.result
val find : t -> Hash.t -> (Checkseum.Crc32.t * int64) option
find t hash
get the CRC-32 checksum and the absolute offset binded on hash
in the IDX file represented by t
only if hash
exists. Otherwise, it returns None
.
mem t hash
returns true
if hash
exists in the IDX file represented by t
. Otherwise, it returns false
.
val iter : t -> (Hash.t -> (Checkseum.Crc32.t * int64) -> unit) -> unit
Iteration in the IDX file.
val fold : t -> (Hash.t -> (Checkseum.Crc32.t * int64) -> 'a -> 'a) -> 'a -> 'a
Fold in the IDX file.
val cardinal : t -> int