Lines Matching defs:customMem

80     ZSTD_customMem customMem;
98 cctx->customMem = memManager;
106 ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem)
110 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL;
111 { ZSTD_CCtx* const cctx = (ZSTD_CCtx*)ZSTD_customMalloc(sizeof(ZSTD_CCtx), customMem);
113 ZSTD_initCCtx(cctx, customMem);
147 ZSTD_customFree(cctx->localDict.dictBuffer, cctx->customMem);
166 ZSTD_cwksp_free(&cctx->workspace, cctx->customMem);
178 ZSTD_customFree(cctx, cctx->customMem);
292 ZSTD_customMem customMem)
295 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL;
297 sizeof(ZSTD_CCtx_params), customMem);
300 params->customMem = customMem;
312 ZSTD_customFree(params, params->customMem);
1056 cctx->customMem);
1078 dictBuffer = ZSTD_customMalloc(dictSize, cctx->customMem);
1821 ZSTD_cwksp_free(ws, zc->customMem);
1822 FORWARD_IF_ERROR(ZSTD_cwksp_create(ws, neededSpace, zc->customMem), "");
2139 ZSTD_memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem));
4727 ZSTD_customMem customMem)
4729 if ((!customMem.customAlloc) ^ (!customMem.customFree)) return NULL;
4737 void* const workspace = ZSTD_customMalloc(workspaceSize, customMem);
4742 ZSTD_customFree(workspace, customMem);
4751 cdict->customMem = customMem;
4762 ZSTD_customMem customMem)
4768 cctxParams.customMem = customMem;
4772 &cctxParams, customMem);
4780 ZSTD_customMem customMem)
4787 if (!customMem.customAlloc ^ !customMem.customFree) return NULL;
4812 customMem);
4850 { ZSTD_customMem const cMem = cdict->customMem;
5048 ZSTD_CStream* ZSTD_createCStream_advanced(ZSTD_customMem customMem)
5050 return ZSTD_createCCtx_advanced(customMem);