Brotli.Encoder
type t
type op =
| Process
| Flush
| Finish
type result =
| Error
| Ok
| 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