Library
Module
Module type
Parameter
Class
Class type
Provides functions for compression using the Brotli algorithm with adjustable parameters, defaults are what Google uses. Be aware that compression may raise Failure exception
Controls the compression-speed vs compression-density tradeoffs. The higher the quality, the slower the compression. Range is `_0 to `_11.
Base 2 logarithm of the maximum input block size. Range is `_16 to `_24. If set to `_0, the value will be set based on the quality.
val bytes :
?mode:mode ->
?quality:quality ->
?lgwin:lgwin ->
?lgblock:lgblock ->
?on_part_compressed:(Nativeint.t -> unit) ->
bytes ->
bytes
Compress the given bytes string to a compressed bytes string
val file :
?mode:mode ->
?quality:quality ->
?lgwin:lgwin ->
?lgblock:lgblock ->
?on_part_compressed:(Nativeint.t -> unit) ->
in_filename:string ->
out_filename:string ->
unit ->
unit
Compress in the input file to the output file name