ZSTD_compress_usingDict method
Simple dictionary API
/
/*! ZSTD_compress_usingDict() :
Compression at an explicit compression level using a Dictionary.
A dictionary can be any arbitrary data segment (also called a prefix),
or a buffer with specified information (see zdict.h).
Note : This function loads the dictionary, resulting in significant startup delay.
It's intended for a dictionary used only once.
Note 2 : When dict == NULL || dictSize < 8
no dictionary is used.
Implementation
int ZSTD_compress_usingDict(
ffi.Pointer<ZSTD_CCtx> ctx,
ffi.Pointer<ffi.Void> dst,
int dstCapacity,
ffi.Pointer<ffi.Void> src,
int srcSize,
ffi.Pointer<ffi.Void> dict,
int dictSize,
int compressionLevel,
) {
return _ZSTD_compress_usingDict(
ctx,
dst,
dstCapacity,
src,
srcSize,
dict,
dictSize,
compressionLevel,
);
}