Skip to main content

zstandard_native 1.5.5 copy "zstandard_native: ^1.5.5" to clipboard
zstandard_native: ^1.5.5 copied to clipboard

Native zstd C sources and FFI bindings for the zstandard Flutter plugin.

zstandard_native #

Native zstd C sources and FFI bindings used by the zstandard Flutter plugin platform implementations (Android, iOS, macOS, Linux, Windows) and CLI.

Contents #

  • src/zstd/ — C source code from facebook/zstd (common, compress, decompress).
  • lib/zstandard_native_bindings.dart — FFI bindings generated from zstd.h for use by all platform plugins.
  • lib/src/zstandard_native_codec.dart — Shared bounded byte-oriented codec used by every native implementation.
  • UPSTREAM_ZSTD.md — Exact upstream version, commit, and locally applied upstream backport.

Usage #

This package is a dependency of the platform-specific zstandard plugins. End users depend on zstandard (or individual platform packages); they do not need to depend on zstandard_native directly.

Development (monorepo) #

From the repository root, run scripts/create_local_overrides.sh <package> to resolve the monorepo packages by path for local tests. Generated pubspec_overrides.yaml files are ignored and must not be published. During a release, publish zstandard_native after the platform interface and before the platform packages and CLI.

Regenerating bindings #

From this package directory:

dart run ffigen --config ffigen.yaml

Or from the repo root:

./scripts/regenerate_bindings.sh

Updating zstd sources #

From the repository root:

./scripts/update_zstd.sh

This refreshes zstandard_native/src/zstd/ from the exact requested upstream revision (the repository default is pinned). Update UPSTREAM_ZSTD.md whenever the revision or the recorded backport changes.

0
likes
150
points
34.6k
downloads

Documentation

API reference

Publisher

verified publishervyp.dev

Weekly Downloads

Native zstd C sources and FFI bindings for the zstandard Flutter plugin.

Homepage
Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

ffi

More

Packages that depend on zstandard_native