Searched refs:customMem (Results 1 – 9 of 9) sorted by relevance
/reactos/drivers/filesystems/btrfs/zstd/ |
H A D | zstd_common.c | 56 void* ZSTD_malloc(size_t size, ZSTD_customMem customMem) in ZSTD_malloc() argument 58 return customMem.customAlloc(customMem.opaque, size); in ZSTD_malloc() 61 void* ZSTD_calloc(size_t size, ZSTD_customMem customMem) in ZSTD_calloc() argument 65 void* const ptr = customMem.customAlloc(customMem.opaque, size); in ZSTD_calloc() 70 void ZSTD_free(void* ptr, ZSTD_customMem customMem) in ZSTD_free() argument 73 customMem.customFree(customMem.opaque, ptr); in ZSTD_free()
|
H A D | zstd_ddict.c | 148 ZSTD_customMem customMem) in ZSTD_createDDict_advanced() argument 150 if (!customMem.customAlloc ^ !customMem.customFree) return NULL; in ZSTD_createDDict_advanced() 152 { ZSTD_DDict* const ddict = (ZSTD_DDict*) ZSTD_malloc(sizeof(ZSTD_DDict), customMem); in ZSTD_createDDict_advanced() 154 ddict->cMem = customMem; in ZSTD_createDDict_advanced()
|
H A D | zstd_cwksp.h | 458 MEM_STATIC size_t ZSTD_cwksp_create(ZSTD_cwksp* ws, size_t size, ZSTD_customMem customMem) { in ZSTD_cwksp_create() argument 459 void* workspace = ZSTD_malloc(size, customMem); in ZSTD_cwksp_create() 466 MEM_STATIC void ZSTD_cwksp_free(ZSTD_cwksp* ws, ZSTD_customMem customMem) { in ZSTD_cwksp_free() argument 470 ZSTD_free(ptr, customMem); in ZSTD_cwksp_free()
|
H A D | zstd_internal.h | 387 void* ZSTD_malloc(size_t size, ZSTD_customMem customMem); 388 void* ZSTD_calloc(size_t size, ZSTD_customMem customMem); 389 void ZSTD_free(void* ptr, ZSTD_customMem customMem);
|
H A D | zstd_compress.c | 59 ZSTD_customMem customMem; member 73 cctx->customMem = memManager; in ZSTD_initCCtx() 85 if (!customMem.customAlloc ^ !customMem.customFree) return NULL; in ZSTD_createCCtx_advanced() 88 ZSTD_initCCtx(cctx, customMem); in ZSTD_createCCtx_advanced() 205 ZSTD_customMem customMem) in ZSTD_createCCtxParams_advanced() argument 208 if (!customMem.customAlloc ^ !customMem.customFree) return NULL; in ZSTD_createCCtxParams_advanced() 212 params->customMem = customMem; in ZSTD_createCCtxParams_advanced() 885 cctx->customMem); in ZSTD_initLocalDict() 1778 memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem)); in ZSTD_copyCCtx_internal() 3410 if (!customMem.customAlloc ^ !customMem.customFree) return NULL; in ZSTD_createCDict_advanced() [all …]
|
H A D | zstd.h | 1377 ZSTDLIB_API ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem); 1378 ZSTDLIB_API ZSTD_CStream* ZSTD_createCStream_advanced(ZSTD_customMem customMem); 1379 ZSTDLIB_API ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem); 1380 ZSTDLIB_API ZSTD_DStream* ZSTD_createDStream_advanced(ZSTD_customMem customMem); 1386 ZSTD_customMem customMem); 1391 ZSTD_customMem customMem);
|
H A D | zstd_decompress.c | 135 ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem) in ZSTD_createDCtx_advanced() argument 137 if (!customMem.customAlloc ^ !customMem.customFree) return NULL; in ZSTD_createDCtx_advanced() 139 { ZSTD_DCtx* const dctx = (ZSTD_DCtx*)ZSTD_malloc(sizeof(*dctx), customMem); in ZSTD_createDCtx_advanced() 141 dctx->customMem = customMem; in ZSTD_createDCtx_advanced() 165 { ZSTD_customMem const cMem = dctx->customMem; in ZSTD_freeDCtx() 1276 ZSTD_DStream* ZSTD_createDStream_advanced(ZSTD_customMem customMem) in ZSTD_createDStream_advanced() argument 1278 return ZSTD_createDCtx_advanced(customMem); in ZSTD_createDStream_advanced() 1300 …ocal = ZSTD_createDDict_advanced(dict, dictSize, dictLoadMethod, dictContentType, dctx->customMem); in ZSTD_DCtx_loadDictionary_advanced() 1748 ZSTD_free(zds->inBuff, zds->customMem); in ZSTD_decompressStream() 1751 zds->inBuff = (char*)ZSTD_malloc(bufferSize, zds->customMem); in ZSTD_decompressStream()
|
H A D | zstd_decompress_internal.h | 126 ZSTD_customMem customMem; member
|
H A D | zstd_compress_internal.h | 232 ZSTD_customMem customMem; member 249 ZSTD_customMem customMem; member
|