zstd_ffi library

Classes

Context
Compression context When compressing many times, it is recommended to allocate a context just once, and re-use it for each successive compression operation. This will make workload friendlier for system's memory. Note : re-using context is just a speed / resource optimization. It doesn't change the compression ratio, which remains identical. Note 2 : In multi-threaded environments, use one different context per thread for parallel execution.
DecContext
DecDict
Dict
Level
Strategy

Functions

compress(Uint8List src, {int level = Level.levelDefault}) → Uint8List
Simple compression and decompression
decompress(Uint8List src) → Uint8List
Throw ZStdError if failed.
errorName(int code) → String
Error
versionNumber() → int
Version number of library, like 10406
versionString() → String
Version string of library, like '1.4.6'

Exceptions / Errors

ZStdError