Changeset View
Changeset View
Standalone View
Standalone View
contrib/zstd/lib/compress/zstdmt_compress.h
Show All 16 Lines | |||||
/* Note : This is an internal API. | /* Note : This is an internal API. | ||||
* Some methods are still exposed (ZSTDLIB_API), | * Some methods are still exposed (ZSTDLIB_API), | ||||
* because it used to be the only way to invoke MT compression. | * because it used to be the only way to invoke MT compression. | ||||
* Now, it's recommended to use ZSTD_compress_generic() instead. | * Now, it's recommended to use ZSTD_compress_generic() instead. | ||||
* These methods will stop being exposed in a future version */ | * These methods will stop being exposed in a future version */ | ||||
/* === Dependencies === */ | /* === Dependencies === */ | ||||
#ifdef _KERNEL | |||||
#include <sys/param.h> /* size_t */ | |||||
#else | |||||
#include <stddef.h> /* size_t */ | #include <stddef.h> /* size_t */ | ||||
#endif | |||||
#define ZSTD_STATIC_LINKING_ONLY /* ZSTD_parameters */ | #define ZSTD_STATIC_LINKING_ONLY /* ZSTD_parameters */ | ||||
#include "zstd.h" /* ZSTD_inBuffer, ZSTD_outBuffer, ZSTDLIB_API */ | #include "zstd.h" /* ZSTD_inBuffer, ZSTD_outBuffer, ZSTDLIB_API */ | ||||
/* === Memory management === */ | /* === Memory management === */ | ||||
typedef struct ZSTDMT_CCtx_s ZSTDMT_CCtx; | typedef struct ZSTDMT_CCtx_s ZSTDMT_CCtx; | ||||
ZSTDLIB_API ZSTDMT_CCtx* ZSTDMT_createCCtx(unsigned nbThreads); | ZSTDLIB_API ZSTDMT_CCtx* ZSTDMT_createCCtx(unsigned nbThreads); | ||||
ZSTDLIB_API ZSTDMT_CCtx* ZSTDMT_createCCtx_advanced(unsigned nbThreads, | ZSTDLIB_API ZSTDMT_CCtx* ZSTDMT_createCCtx_advanced(unsigned nbThreads, | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |