GzipDecoder class final

gzip (RFC 1952) decompression as a synchronous, chunk-driven state machine, including multi-member files (concatenated streams). Malformed input throws FormatException; the archive layer translates.

Trailer CRC-32 and ISIZE are verified per member by default (verifyChecksums). Trailing bytes after the last member that do not start with the gzip magic are ignored, matching gzip(1).

Inheritance

Constructors

GzipDecoder({bool verifyChecksums = true, void onMemberHeader(GzipMemberHeader header)?})
Creates the decoder. onMemberHeader is invoked with each member's parsed header (FNAME etc.) as decoding reaches it.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
onMemberHeader → void Function(GzipMemberHeader header)?
Callback receiving each member's header metadata.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verifyChecksums bool
Verify each member's CRC-32 and ISIZE trailer (on by default).
final

Methods

bind(Stream<List<int>> stream) Stream<List<int>>
Transforms the provided stream.
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(List<int> input) Uint8List
Decompresses a complete gzip file (all members, concatenated output).
override
fuse<TT>(Converter<List<int>, TT> other) Converter<List<int>, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChunkedConversion(Sink<List<int>> sink) ByteConversionSink
Starts a chunked conversion.
override
toString() String
A string representation of this object.
inherited

Operators

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