Lines Matching refs:customMem

97 	ZSTD_customMem customMem;  member
126 ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem) in ZSTD_createDCtx_advanced() argument
130 if (!customMem.customAlloc || !customMem.customFree) in ZSTD_createDCtx_advanced()
133 dctx = (ZSTD_DCtx *)ZSTD_malloc(sizeof(ZSTD_DCtx), customMem); in ZSTD_createDCtx_advanced()
136 memcpy(&dctx->customMem, &customMem, sizeof(customMem)); in ZSTD_createDCtx_advanced()
151 ZSTD_free(dctx, dctx->customMem); in ZSTD_freeDCtx()
2040 …teDDict_advanced(const void *dict, size_t dictSize, unsigned byReference, ZSTD_customMem customMem) in ZSTD_createDDict_advanced() argument
2042 if (!customMem.customAlloc || !customMem.customFree) in ZSTD_createDDict_advanced()
2046 ZSTD_DDict *const ddict = (ZSTD_DDict *)ZSTD_malloc(sizeof(ZSTD_DDict), customMem); in ZSTD_createDDict_advanced()
2049 ddict->cMem = customMem; in ZSTD_createDDict_advanced()
2055 void *const internalBuffer = ZSTD_malloc(dictSize, customMem); in ZSTD_createDDict_advanced()
2177 ZSTD_customMem customMem; member
2192 static ZSTD_DStream *ZSTD_createDStream_advanced(ZSTD_customMem customMem) in ZSTD_createDStream_advanced() argument
2196 if (!customMem.customAlloc || !customMem.customFree) in ZSTD_createDStream_advanced()
2199 zds = (ZSTD_DStream *)ZSTD_malloc(sizeof(ZSTD_DStream), customMem); in ZSTD_createDStream_advanced()
2203 memcpy(&zds->customMem, &customMem, sizeof(ZSTD_customMem)); in ZSTD_createDStream_advanced()
2204 zds->dctx = ZSTD_createDCtx_advanced(customMem); in ZSTD_createDStream_advanced()
2235 zds->inBuff = (char *)ZSTD_malloc(blockSize, zds->customMem); in ZSTD_initDStream()
2237 zds->outBuff = (char *)ZSTD_malloc(neededOutSize, zds->customMem); in ZSTD_initDStream()
2261 ZSTD_customMem const cMem = zds->customMem; in ZSTD_freeDStream()