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
byteswith the ZLib format.verifycan be used to validate the checksum of the decompressed data, though it is not guaranteed this will be used. Ifrawis 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
inputas it is read. -
decodeStream(
InputStream input, OutputStream output, {bool verify = false, bool raw = false, int? maxOutputSize}) → bool -
Decompress the given
inputwith the ZLib format, writing the decompressed data to theoutputstream.verifycan be used to validate the checksum of the decompressed data, though it is not guaranteed this will be used. Ifrawis 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