ZLibDecoder class

Decompress data with the zlib format decoder. The actual decoder used will depend on the platform the code is run on. In a 'dart:io' based platform, like Flutter, the native ZLibCodec will be used to improve performance. On web platforms, a Dart implementation of ZLib will be used, via the Inflate class. If you want to force the use of the Dart implementation, you can use the ZLibDecoderWeb class.

Constructors

ZLibDecoder()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

decodeBytes(List<int> bytes, {bool verify = false, bool raw = false, int? maxOutputSize}) → Uint8List
Decompress the given bytes with the ZLib format. verify can be used to validate the checksum of the decompressed data, though it is not guaranteed this will be used. If raw is true, the input will be considered deflate compressed data without a zlib header.
decodeLazy(InputStream input, {bool verify = false, bool raw = false}) → InputStream
Returns an InputStream that decompresses input as it is read.
decodeStream(InputStream input, OutputStream output, {bool verify = false, bool raw = false, int? maxOutputSize}) → bool
Decompress the given input with the ZLib format, writing the decompressed data to the output stream. verify can be used to validate the checksum of the decompressed data, though it is not guaranteed this will be used. If raw is true, the input will be considered deflate compressed data without a zlib header.
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