Module Brotli.Decompress

Provides two functions for decompressing Brotli algorithm compressed bytes, files; functions may raise Failure exception. Note that on_part_decompressed and on_part_compressed require OCaml to acquire and release the runtime lock repeatedly.

val bytes : ?⁠on_part_decompressed:(Nativeint.t ‑> unit) ‑> bytes ‑> bytes

Decompress compressed byte string with optional callback

val version : string

Brotli decoder version

val file : ?⁠on_part_decompressed:(Nativeint.t ‑> unit) ‑> in_filename:string ‑> out_filename:string ‑> unit ‑> unit

Decompress the input file to the output file