Files
SimpleRemoter/common/zstd_wrapper.h

32 lines
881 B
C
Raw 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