Inflate class

Dart implementation of the ZLib inflate decompression algorithm, used by ZLibEncoder and GZipEncoder. This is used to decompress data that was previously compressed by the Deflate algorithm.

Constructors

Inflate(List<int> bytes, {OutputStream? output, int? uncompressedSize})
Decompress the given bytes. If output is provided, the decompressed data will be written to that, otherwise the decompressed data can be gotten from the getBytes method. If uncompressedSize is provided and output is not, then the internal memory buffer will be pre-allocated to that size, reducing the need to grow the uncompressed data buffer.
Inflate.lazy(InputStream? _input, {OutputStream? output})
Set up to decompress input into output a block at a time with inflateBlock, rather than all at once.
Inflate.stream(InputStream? _input, {OutputStream? output, int? uncompressedSize})
Decompress the given input InputStream. If output is provided, the decompressed data will be written to that, otherwise the decompressed data can be gotten from the getBytes method. If input is null, then data will not start being decompressed immediately. Instead, you can call the addBytes or addStream method to add compressed byte chunks to be decompressed, allowing the compressed data to be streamed in without being stored entirely in memory.

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

addBytes(List<int> bytes) → void
Add compressed data to be decompressed.
addStream(InputStream stream) → void
Add compressed data to be decompressed.
getBytes() → Uint8List
Get the decompressed data.
inflateBlock() → bool
Decompresses the next deflate block. Returns false once the final block has been decompressed. Throws an ArchiveException if the data is malformed or ends early.
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