package git-unix

  1. Overview
  2. Docs
type t = t
type init = Inflate.window * Cstruct.t * Cstruct.t
type error = [
  1. | `Chunk_too_big of Fpath.t * int * int
  2. | `Decoder of Git__Error.Angstrom.info
  3. | `Decoder_file of Fpath.t * Git__Error.Angstrom.info
  4. | `Decoder_stream of Cstruct.t * Git__Error.Angstrom.info
  5. | `Inflate of Inflate.error
  6. | `Malicious
  7. | `Malicious_file of Fpath.t
  8. | `Result of Cstruct.t * string
  9. | `Too_big of int * int
]
type decoder = Store.Value.D.decoder
val pp_error : error Fmt.t
val to_result : Cstruct.t -> (t, error) Stdlib.result
val default : init -> decoder
val eval : decoder -> [ `Await of decoder | `End of Cstruct.t * t | `Error of Cstruct.t * error ]
val refill : Cstruct.t -> decoder -> (decoder, error) Stdlib.result
val finish : decoder -> decoder
OCaml

Innovation. Community. Security.