package git

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

MakeDecoder makes a module which respects the interface S.DECODER from an angstrom decoder.

This decoder is implemented on top of some assertions (see comment in the helper.ml file for more informations), don't use it outside the scope of ocaml-git.

Parameters

module A : sig ... end

Signature

type t = A.e
type init = Cstruct.t
type error = Error.Decoder.t
type decoder
val pp_error : error Fmt.t
val to_result : Cstruct.t -> (t, error) 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) result
val finish : decoder -> decoder
OCaml

Innovation. Community. Security.