Zstandard library(zstd) ffi binding for Dart
Features
x
Simple compress/decrompressx
Compress with Contextx
Decompress with Contextx
Compress with Dictx
Decompress with Dictx
Add Mac library(1.4.6)x
Add Linux library(1.4.6)- [] Add Windows library
Usage
- simple compress/deccompress
final dst = compress(src, level: 1);
// src/dst is Uint8List
final plain = decompress(dst);
// plain is Uint8List
- Compress with context
final ctx = Context.create();
try {
dst = ctx.compress(src);
} finally {
ctx.dispose();
}
Upgrade zstd
# replace lib/zstd.h
pub run ffigen
pub run test
pub publish