Module Brotli.Encoder

type t
type op =
  1. | Process
  2. | Flush
  3. | Finish
type result =
  1. | Error
  2. | Ok
  3. | Finished
val create : ?quality:int -> unit -> t
val destroy : t -> unit
val compress_stream : t -> op -> src:Bbuf.t -> dst:Bbuf.t -> result
val with_encoder : ?quality:int -> (t -> 'a) -> 'a