decode static method

Uint8List decode(
  1. Uint8List bytes, {
  2. int? maxOutputSize,
})

Decodes the Brotli bytes.

If maxOutputSize is provided, throws a BrotliException when the decoded size exceeds it (checked while decoding). Without it, the brotli_fast default limit applies (brotliDefaultMaxOutputSize).

Implementation

static Uint8List decode(Uint8List bytes, {int? maxOutputSize}) =>
    brotliDecode(
      bytes,
      maxOutputSize: maxOutputSize ?? brotliDefaultMaxOutputSize,
    );