zstd_ffi 0.0.5+2 copy "zstd_ffi: ^0.0.5+2" to clipboard
zstd_ffi: ^0.0.5+2 copied to clipboard

outdated

zstd ffi binding for Dart. More better performance than flutter plugin.

Zstandard library(zstd) ffi binding for Dart

build

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
0
likes
40
pub points
26%
popularity

Publisher

unverified uploader

zstd ffi binding for Dart. More better performance than flutter plugin.

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

Dependencies

ffi

More

Packages that depend on zstd_ffi