zstd_ffi 0.0.5
zstd_ffi: ^0.0.5 copied to clipboard
zstd ffi binding for Dart. More better performance than flutter plugin.
Zstandard library(zstd) ffi binding for Dart
Features #
- ✅ Simple compress/decrompress
- ✅ Compress with Context
- ✅ Decompress with Context
- ✅ Compress with Dict
- ✅ Decompress with Dict
- ✅ Add Mac library(1.4.6)
- ✅ 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