void* ZSTD_defaultAllocFunction(void* opaque, size_t size);
void ZSTD_defaultFreeFunction(void* opaque, void* address);
static ZSTD_customMem const defaultCustomMem = { ZSTD_defaultAllocFunction, ZSTD_defaultFreeFunction, NULL };
-static ZSTD_customMem const defaultCustomNULL = { NULL, NULL, NULL };
-
+
#endif /* ZSTD_CCOMMON_H_MODULE */
ZBUFF_CCtx* ZBUFF_createCCtx(void)
{
- return ZBUFF_createCCtx_advanced(defaultCustomNULL);
+ return ZBUFF_createCCtx_advanced(defaultCustomMem);
}
ZBUFF_CCtx* ZBUFF_createCCtx_advanced(ZSTD_customMem customMem)
ZSTD_CCtx* ZSTD_createCCtx(void)
{
- return ZSTD_createCCtx_advanced(defaultCustomNULL);
+ return ZSTD_createCCtx_advanced(defaultCustomMem);
}
ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem)
ZBUFF_DCtx* ZBUFF_createDCtx(void)
{
- return ZBUFF_createDCtx_advanced(defaultCustomNULL);
+ return ZBUFF_createDCtx_advanced(defaultCustomMem);
}
ZBUFF_DCtx* ZBUFF_createDCtx_advanced(ZSTD_customMem customMem)
ZSTD_DCtx* ZSTD_createDCtx(void)
{
- return ZSTD_createDCtx_advanced(defaultCustomNULL);
+ return ZSTD_createDCtx_advanced(defaultCustomMem);
}