Files

32 lines
750 B
C
Raw Permalink Normal View History

#ifndef ZSTD_WRAPPER_H
#define ZSTD_WRAPPER_H
#include "zstd/zstd.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* 线/线
* @param cctx
* @param dst
* @param dstCapacity
* @param src
* @param srcSize
* @param threshold 线 >= 1MB
* @return ZSTD_isError()
*/
size_t zstd_compress_auto(
ZSTD_CCtx* cctx,
void* dst, size_t dstCapacity,
const void* src, size_t srcSize,
size_t threshold
);
#ifdef __cplusplus
}
#endif
#endif // ZSTD_WRAPPER_H