View Source brotli_encoder (brotli v0.3.2)

Link to this section Summary

Link to this section Types

-type mode() :: generic | text | font.
-type ndirect() :: non_neg_integer().
-type 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()}.
-opaque t()

Link to this section Functions

-spec append(Encoder :: t(), Data :: iodata()) -> {ok, iodata()} | error.
-spec finish(Encoder :: t()) -> {ok, iodata()} | error.
-spec finish(Encoder :: t(), Data :: iodata()) -> {ok, iodata()} | error.
-spec is_finished(Encoder :: t()) -> boolean().
-spec new() -> t().
-spec new(Opts :: options()) -> t().
-spec set_opts(Encoder :: t(), Opts :: options()) -> ok.