package git

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | External of {
    1. hash : Hash.t;
    2. kind : kind;
    3. raw : Cstruct.t;
    }
  2. | Root of Base.t
  3. | Node of {
    1. patch : Patch.t;
    2. source : t;
    }
type metadata = {
  1. length : int;
  2. crc : Checkseum.Crc32.t;
  3. offset : int64;
  4. consumed : int;
}
type s = [
  1. | `Patch of metadata
  2. | `Base of metadata
  3. | `Extern
]
val needed_cache : int -> (int64, int) Cache.t
val get_cache : int -> (int64, t) Cache.t
val apply_cache : int -> (int64, kind * Cstruct.t * int * s) Cache.t
val get_from_absolute_offset : ztmp:Cstruct.t -> zwin:Inflate.window -> cache:(int64, t) Cache.t -> ?chunk:int -> ?htmp:Cstruct.t array -> Cstruct.t -> pack -> int64 -> (t, error) Stdlib.result Lwt.t
val get_from_hash : ztmp:Cstruct.t -> zwin:Inflate.window -> cache:(int64, t) Cache.t -> ?chunk:int -> ?htmp:Cstruct.t array -> Cstruct.t -> pack -> Hash.t -> (t, error) Stdlib.result Lwt.t
val get : ztmp:Cstruct.t -> zwin:Inflate.window -> cache:(int64, t) Cache.t -> ?chunk:int -> ?htmp:Cstruct.t array -> Cstruct.t -> pack -> [ `Hash of Hash.t | `Offset of int64 ] -> (t, error) Stdlib.result Lwt.t
val reconstruct : (Cstruct.t * Cstruct.t) -> t -> kind * Cstruct.t * int * s
val apply_from_absolute_offset : ztmp:Cstruct.t -> zwin:Inflate.window -> cache:(int64, kind * Cstruct.t * int * s) Cache.t -> ?chunk:int -> ?htmp:Cstruct.t array -> (Cstruct.t * Cstruct.t) -> pack -> int64 -> (kind * Cstruct.t * int * s, error) Stdlib.result Lwt.t
val apply_from_hash : ztmp:Cstruct.t -> zwin:Inflate.window -> cache:(int64, kind * Cstruct.t * int * s) Cache.t -> ?chunk:int -> ?htmp:Cstruct.t array -> (Cstruct.t * Cstruct.t) -> pack -> Hash.t -> (kind * Cstruct.t * int * s, error) Stdlib.result Lwt.t
val apply : ztmp:Cstruct.t -> zwin:Inflate.window -> cache:(int64, kind * Cstruct.t * int * s) Cache.t -> ?chunk:int -> ?htmp:Cstruct.t array -> (Cstruct.t * Cstruct.t) -> pack -> [ `Hash of Hash.t | `Offset of int64 ] -> (kind * Cstruct.t * int * s, error) Stdlib.result Lwt.t
val needed_from_absolute_offset : ztmp:Cstruct.t -> zwin:Inflate.window -> cache:(int64, int) Cache.t -> ?chunk:int -> pack -> int64 -> (int, error) Stdlib.result Lwt.t
val needed_from_hash : ztmp:Cstruct.t -> zwin:Inflate.window -> cache:(int64, int) Cache.t -> ?chunk:int -> pack -> Hash.t -> (int, error) Stdlib.result Lwt.t
val needed : ztmp:Cstruct.t -> zwin:Inflate.window -> cache:(int64, int) Cache.t -> ?chunk:int -> pack -> [ `Hash of Hash.t | `Offset of int64 ] -> (int, error) Stdlib.result Lwt.t
val length_from_absolute_offset : ztmp:Cstruct.t -> zwin:Inflate.window -> ?chunk:int -> pack -> int64 -> (int, error) Stdlib.result Lwt.t
val length_from_hash : ztmp:Cstruct.t -> zwin:Inflate.window -> ?chunk:int -> pack -> Hash.t -> (int, error) Stdlib.result Lwt.t
val length : ztmp:Cstruct.t -> zwin:Inflate.window -> ?chunk:int -> pack -> [ `Hash of Hash.t | `Offset of int64 ] -> (int, error) Stdlib.result Lwt.t
OCaml

Innovation. Community. Security.