GZipEncoder class

Compress data with the GZip format encoder. The actual encoder used will depend on the platform the code is run on. In a 'dart:io' based platform, like Flutter, the native GZipCodec will be used to improve performance. On web platforms, a Dart implementation of ZLib will be used, via the Deflate class. If you want to force the use of the Dart implementation, you can use the GZipEncoderWeb class.

Constructors

GZipEncoder()
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

encode(List<int> bytes, {int? level}) List<int>
Alias for encodeBytes, kept for backwards compatibility.
encodeBytes(List<int> bytes, {int? level}) Uint8List
Compress the given bytes with the GZip format. level will set the compression level to use, between 0 and 9.
encodeStream(InputStream input, OutputStream output, {int? level}) → void
Compress the given input stream with the GZip format. level will set the compression level to use, between 0 and 9.
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