BrotliCodec class

The BrotliCodec encodes raw bytes to Brotli compressed bytes and decodes Brotli compressed bytes to raw bytes.

Inheritance

Constructors

BrotliCodec({List<int> compoundDictionary = const []})
Instantiates a new BrotliCodec.
const

Properties

compoundDictionary List<int>
final
decoder Converter<List<int>, List<int>>
Returns the BrotliDecoder.
no setteroverride
encoder Converter<List<int>, List<int>>
Returns the encoder from S to T.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inverted Codec<List<int>, List<int>>
Inverts this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(List<int> encoded) List<int>
Decodes encoded data.
inherited
decodeStream(Stream<List<int>> data, {Encoding encoding = utf8}) Future<String>
Decodes the Brotli-encoded data to the corresponding string.
decodeToString(List<int> encoded, {Encoding? encoding}) String
Decodes the encoded Brotli data to the corresponding string.
encode(List<int> input) List<int>
Encodes input.
inherited
fuse<R>(Codec<List<int>, R> other) Codec<List<int>, R>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited