Module Brotli.Encoder

type t = encoder_state
val create : ?quality:int -> unit -> encoder_state
val destroy : encoder_state -> unit
val compress_stream : ?output_size:int -> encoder_state -> string -> encoder_operation -> bool * int * string * bool
val with_encoder : ?quality:int -> (encoder_state -> 'a) -> 'a