zstd 0.0.1-dev.2
zstd: ^0.0.1-dev.2 copied to clipboard
Zstandard, or zstd as short version, is a fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level and better compression ratios. It's backed by a very fast entropy [...]
zstd #
zstd
is a Flutter plugin that provides fast lossless compression and decompression using the Zstandard (zstd) algorithm. It enables Dart and Flutter applications to efficiently compress and decompress data across multiple platforms, including Android, iOS, macOS, Windows and Linux.
Features #
- Compress and decompress data using the zstd algorithm
- Cross-platform support: Android, iOS, macOS, Windows, Linux
- Simple Dart API
Installation #
Add this to your pubspec.yaml
:
dependencies:
zstd: ^<latest_version>
Then run:
flutter pub get
Usage #
Import the package:
import 'package:zstd/zstd.dart';
Compress and decompress data:
final input = utf8.encode('Hello, zstd!');
final encoded = zstd.encode(value);
final decoded = zstd.decode(encoded);
final text = utf8.decode(decoded);
debugPrint(text); // Hello, zstd!
See the example for more details.
Platform Support #
- Android
- iOS
- macOS
- Windows
- Linux
Contributing #
Contributions are welcome! Please open issues or submit pull requests for bug fixes, new features, or improvements.
License #
This project is licensed under the MIT License. See the LICENSE file for details.