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()
2039 …teDDict_advanced(const void *dict, size_t dictSize, unsigned byReference, ZSTD_customMem customMem) in ZSTD_createDDict_advanced() argument
2041 if (!customMem.customAlloc || !customMem.customFree) in ZSTD_createDDict_advanced()
2045 ZSTD_DDict *const ddict = (ZSTD_DDict *)ZSTD_malloc(sizeof(ZSTD_DDict), customMem); in ZSTD_createDDict_advanced()
2048 ddict->cMem = customMem; in ZSTD_createDDict_advanced()
2054 void *const internalBuffer = ZSTD_malloc(dictSize, customMem); in ZSTD_createDDict_advanced()
2176 ZSTD_customMem customMem; member
2191 static ZSTD_DStream *ZSTD_createDStream_advanced(ZSTD_customMem customMem) in ZSTD_createDStream_advanced() argument
2195 if (!customMem.customAlloc || !customMem.customFree) in ZSTD_createDStream_advanced()
2198 zds = (ZSTD_DStream *)ZSTD_malloc(sizeof(ZSTD_DStream), customMem); in ZSTD_createDStream_advanced()
2202 memcpy(&zds->customMem, &customMem, sizeof(ZSTD_customMem)); in ZSTD_createDStream_advanced()
2203 zds->dctx = ZSTD_createDCtx_advanced(customMem); in ZSTD_createDStream_advanced()
2234 zds->inBuff = (char *)ZSTD_malloc(blockSize, zds->customMem); in ZSTD_initDStream()
2236 zds->outBuff = (char *)ZSTD_malloc(neededOutSize, zds->customMem); in ZSTD_initDStream()
2260 ZSTD_customMem const cMem = zds->customMem; in ZSTD_freeDStream()