brotli_encoder (brotli v0.3.1) View Source

Link to this section Summary

Link to this section Types

Specs

mode() :: generic | text | font.

Specs

ndirect() :: non_neg_integer().

Specs

options() ::
    #{mode => mode(),
      quality => 0..11,
      window => 10..30,
      block_size => 16..24,
      literal_context_modeling => boolean(),
      size_hint => non_neg_integer(),
      large_window => boolean(),
      npostfix => 0..3,
      ndirect => ndirect(),
      stream_offset => non_neg_integer()}.

Specs

t()

Link to this section Functions

Specs

append(Encoder :: t(), Data :: iodata()) -> {ok, iodata()} | error.

Specs

finish(Encoder :: t()) -> {ok, iodata()} | error.

Specs

finish(Encoder :: t(), Data :: iodata()) -> {ok, iodata()} | error.

Specs

is_finished(Encoder :: t()) -> boolean().

Specs

new() -> t().

Specs

new(Opts :: options()) -> t().

Specs

set_opts(Encoder :: t(), Opts :: options()) -> ok.