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
byteswith GZip atlevel(-1to9). -
encodeAsync(
Uint8List bytes, {int level = defaultLevel}) → FutureOr< Uint8List?> -
Same as encode, but encodes in the compressionIsolatePool (a
background Isolate) if
bytesis large forlevel(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.