The ZLibCodec encodes raw bytes to ZLib compressed bytes and decodes ZLib compressed bytes to raw bytes.

Inheritance

Properties

decoder Converter<List<int>, List<int>>

Get a ZLibDecoder for decoding ZLib compressed data.

read-only
dictionary List<int>

read-only
encoder Converter<List<int>, List<int>>

Get a ZLibEncoder for encoding to ZLib compressed data.

read-only
gzip bool

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
inverted Codec<List<int>, List<int>>

Inverts this.

read-only, inherited
level int

read-only
memLevel int

read-only
raw bool

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited
strategy int

read-only
windowBits int

read-only

Constructors

ZLibCodec({int level: ZLibOption.DEFAULT_LEVEL, int windowBits: ZLibOption.DEFAULT_WINDOW_BITS, int memLevel: ZLibOption.DEFAULT_MEM_LEVEL, int strategy: ZLibOption.STRATEGY_DEFAULT, List<int> dictionary: null, bool raw: false, bool gzip: false})

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

decode(List<int> encoded) List<int>

inherited
encode(List<int> input) List<int>

inherited
fuse(Codec<List<int>, dynamic> other) Codec<List<int>, dynamic>

Fuses this with other.

inherited
noSuchMethod(Invocation invocation) → dynamic

noSuchMethod is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.

inherited
toString() String

Returns a string representation of this object.

inherited