Lines Matching refs:customMem
80 ZSTD_customMem customMem; member
98 cctx->customMem = memManager; in ZSTD_initCCtx()
106 ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem) in ZSTD_createCCtx_advanced() argument
110 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCCtx_advanced()
111 { ZSTD_CCtx* const cctx = (ZSTD_CCtx*)ZSTD_customMalloc(sizeof(ZSTD_CCtx), customMem); in ZSTD_createCCtx_advanced()
113 ZSTD_initCCtx(cctx, customMem); in ZSTD_createCCtx_advanced()
147 ZSTD_customFree(cctx->localDict.dictBuffer, cctx->customMem); in ZSTD_clearAllDicts()
166 ZSTD_cwksp_free(&cctx->workspace, cctx->customMem); in ZSTD_freeCCtxContent()
178 ZSTD_customFree(cctx, cctx->customMem); in ZSTD_freeCCtx()
292 ZSTD_customMem customMem) in ZSTD_createCCtxParams_advanced() argument
295 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCCtxParams_advanced()
297 sizeof(ZSTD_CCtx_params), customMem); in ZSTD_createCCtxParams_advanced()
300 params->customMem = customMem; in ZSTD_createCCtxParams_advanced()
312 ZSTD_customFree(params, params->customMem); in ZSTD_freeCCtxParams()
1056 cctx->customMem); in ZSTD_initLocalDict()
1078 dictBuffer = ZSTD_customMalloc(dictSize, cctx->customMem); in ZSTD_CCtx_loadDictionary_advanced()
1821 ZSTD_cwksp_free(ws, zc->customMem); in ZSTD_resetCCtx_internal()
1822 FORWARD_IF_ERROR(ZSTD_cwksp_create(ws, neededSpace, zc->customMem), ""); in ZSTD_resetCCtx_internal()
2139 ZSTD_memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem)); in ZSTD_copyCCtx_internal()
4727 ZSTD_customMem customMem) in ZSTD_createCDict_advanced_internal() argument
4729 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL; in ZSTD_createCDict_advanced_internal()
4737 void* const workspace = ZSTD_customMalloc(workspaceSize, customMem); in ZSTD_createCDict_advanced_internal()
4742 ZSTD_customFree(workspace, customMem); in ZSTD_createCDict_advanced_internal()
4751 cdict->customMem = customMem; in ZSTD_createCDict_advanced_internal()
4762 ZSTD_customMem customMem) in ZSTD_createCDict_advanced() argument
4768 cctxParams.customMem = customMem; in ZSTD_createCDict_advanced()
4772 &cctxParams, customMem); in ZSTD_createCDict_advanced()
4780 ZSTD_customMem customMem) in ZSTD_createCDict_advanced2() argument
4787 if (!customMem.customAlloc ^ !customMem.customFree) return NULL; in ZSTD_createCDict_advanced2()
4812 customMem); in ZSTD_createCDict_advanced2()
4852 { ZSTD_customMem const cMem = cdict->customMem; in ZSTD_freeCDict()
5050 ZSTD_CStream* ZSTD_createCStream_advanced(ZSTD_customMem customMem) in ZSTD_createCStream_advanced() argument
5052 return ZSTD_createCCtx_advanced(customMem); in ZSTD_createCStream_advanced()