ZstandardPlatform class abstract
Abstract platform interface for Zstandard compression and decompression.
All platform implementations (Android, iOS, macOS, Linux, Windows, web) must extend this class and implement getPlatformVersion, compress, and decompress. They register themselves by setting instance.
Application code should use the main zstandard package, not this interface.
- Inheritance
-
- Object
- PlatformInterface
- ZstandardPlatform
Constructors
- ZstandardPlatform()
- Constructs a ZstandardPlatform.
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
-
compress(
Uint8List data, int compressionLevel) → Future< Uint8List?> -
Compresses
dataat the givencompressionLevel(1–22). -
decompress(
Uint8List data) → Future< Uint8List?> -
Decompresses Zstandard-compressed
data. -
getPlatformVersion(
) → Future< String?> - Returns a platform-specific version or identifier string.
-
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 Properties
- instance ↔ ZstandardPlatform
-
The default instance of ZstandardPlatform to use.
getter/setter pair
Constants
- defaultMaxDecompressedSize → const int
- Default maximum output accepted by decompress.