package git

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type encoder = {
  1. payload : Bytes.t;
  2. mutable pos : int;
}
val io_buffer_size : int
val create : unit -> encoder
type error = [
  1. | `No_enough_space
]
val pp_error : error Fmt.t
type 'err state =
  1. | Write of {
    1. buffer : string;
    2. off : int;
    3. len : int;
    4. continue : int -> 'err state;
    }
  2. | Error of 'err
  3. | Done
val safe : (encoder -> [> error ] as 'err state) -> encoder -> 'err state
val flush : (encoder -> [> error ] as 'err state) -> encoder -> 'err state
val write : encoder -> string -> unit
val blit : encoder -> buf:string -> off:int -> len:int -> unit
OCaml

Innovation. Community. Security.