ZSTD_compress_usingDict method

int ZSTD_compress_usingDict(
  1. Pointer<ZSTD_CCtx> ctx,
  2. Pointer<Void> dst,
  3. int dstCapacity,
  4. Pointer<Void> src,
  5. int srcSize,
  6. Pointer<Void> dict,
  7. int dictSize,
  8. int compressionLevel,
)

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,
  );
}