APIGZip class abstract final

GZip encoding, using the dart:io zlib (native, but synchronous: it blocks the event loop while encoding).

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

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

Static Methods

encode(Uint8List bytes, {int level = defaultLevel}) → Uint8List
Encodes bytes with GZip at level (-1 to 9).
encodeAsync(Uint8List bytes, {int level = defaultLevel}) → FutureOr<Uint8List?>
Same as encode, but encodes in the compressionIsolatePool (a background Isolate) if bytes is large for level (see isolateMinLength).
isolateMinLength(int level) → int
The minimal length to encodeAsync in the compressionIsolatePool at level.

Constants

defaultLevel → const int
The default GZip level for dynamic responses.