package colombe

  1. Overview
  2. Docs
type encoder
val io_buffer_size : int
val encoder : unit -> encoder
val pp : encoder Fmt.t
type error = [
  1. | `Not_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 : string -> encoder -> unit
val blit : buf:string -> off:int -> len:int -> encoder -> unit
OCaml

Innovation. Community. Security.