Module brotli

Function Index

decode/1
decode/2
encode/1Compress data in one step.
encode/2Compress data in one step with custom options.
max_compressed_size/1Maximal possible size of the compressed data of size Size.
version/0Return version of the underlying Brotli C implementation.

Function Details

decode/1

decode(Data) -> any()

decode/2

decode(Data, Opts) -> any()

encode/1

encode(Data::iodata()) -> {ok, iodata()} | error

Compress data in one step.

encode/2

encode(Data::iodata(), Opts::brotli_encoder:options()) -> {ok, iodata()} | error

Compress data in one step with custom options.

max_compressed_size/1

max_compressed_size(Size::non_neg_integer()) -> non_neg_integer()

Maximal possible size of the compressed data of size Size.

version/0

version() -> {Major::integer(), Minor::integer(), Patch::integer()}

Return version of the underlying Brotli C implementation.

This is not version of the Erlang library.


Generated by EDoc