ZlibCodec class
Zlib compression codec Uses Dart's built-in zlib implementation Similar to Gzip but with different header
- Implemented types
Constructors
- ZlibCodec()
-
const
Properties
- defaultLevel → int
-
Default compression level
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAvailable → bool
-
Whether this codec is available
no setteroverride
- maxLevel → int
-
Maximum compression level (best compression)
no setteroverride
- minLevel → int
-
Minimum compression level (fastest)
no setteroverride
- name → String
-
Codec name (e.g., 'gzip', 'zlib', 'none')
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compress(
List< int> data, {int level = 6}) → List<int> -
Compress data with optional compression level
override
-
decompress(
List< int> compressed) → List<int> -
Decompress compressed data
override
-
estimateRatio(
List< int> sample) → double -
Estimate compression ratio from a sample
Returns ratio (0.0 to 1.0, lower is better compression)
override
-
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