package git

  1. Overview
  2. Docs

Parameters

module D : Hash.DIGEST
module I : Inflate.S

Signature

module type IO = sig ... end
module V2 : IO

Packed values version 2.

module V3 : IO

Packed values version 3.

Conversion to values

val add_inflated_value : read:Value.read_inflated -> offsets:(int -> Hash.t option) -> Stdlib.Buffer.t -> t -> unit Lwt.t

Append the inflated representation of a packed value to a given buffer.

val to_value : index:Pack_index.f -> read:Value.read_inflated -> write:Value.write_inflated -> version:int -> ba:Cstruct.buffer -> t -> Value.t Lwt.t

Unpack the packed value using the provided indexes.

Position independant packed values

val unpack : index:Pack_index.f -> read:Value.read_inflated -> write:Value.write_inflated -> version:int -> ba:Cstruct.buffer -> t -> string Lwt.t

Same as to_value but for inflated raw buffers.

val value_of_pic : pic -> Value.t

to_value p unpacks the packed position-independant value p.

val to_pic : read:Value.read_inflated -> offsets:(int -> pic option) -> hashes:(Hash.t -> pic option) -> t -> pic Lwt.t

to_pic t is the position-independant representation of the packed value t.

val of_pic : index:Pack_index.f -> offset:int -> pic -> t

Position dependent packed value. Convert a PIC.Link into to the corresponding Off_delta and Ref_delta, using the provided indexes.

OCaml

Innovation. Community. Security.