package git

  1. Overview
  2. Docs

Pack indexes.

type t

Abstract type of pack index.

type f = Hash.t -> int option

The type of functions associating Hash1 keys to offset in the pack file.

type raw = {
  1. offsets : int Hash.Map.t;
  2. crcs : int32 Hash.Map.t;
  3. pack_checksum : Hash.t;
}

offsests is the positions of the Hash objects in the corresponding raw pack file.

crcs contains the CRC-32 value of the packed object data.

pack_checksum is the corresponding pack file checksums, value which is needed when writing the pack index file to disk.

module Raw : sig ... end
module Make (D : Hash.DIGEST) : sig ... end
OCaml

Innovation. Community. Security.