Searched refs:customMem (Results 1 – 3 of 3) sorted by relevance
/external/u-boot/lib/zstd/ |
D | zstd_common.c | 59 void *ZSTD_malloc(size_t size, ZSTD_customMem customMem) { return customMem.customAlloc(customMem.o… in ZSTD_malloc() argument 61 void ZSTD_free(void *ptr, ZSTD_customMem customMem) in ZSTD_free() argument 64 customMem.customFree(customMem.opaque, ptr); in ZSTD_free()
|
D | decompress.c | 87 ZSTD_customMem customMem; member 116 ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem) in ZSTD_createDCtx_advanced() argument 120 if (!customMem.customAlloc || !customMem.customFree) in ZSTD_createDCtx_advanced() 123 dctx = (ZSTD_DCtx *)ZSTD_malloc(sizeof(ZSTD_DCtx), customMem); in ZSTD_createDCtx_advanced() 126 memcpy(&dctx->customMem, &customMem, sizeof(customMem)); in ZSTD_createDCtx_advanced() 141 ZSTD_free(dctx, dctx->customMem); in ZSTD_freeDCtx() 2029 …teDDict_advanced(const void *dict, size_t dictSize, unsigned byReference, ZSTD_customMem customMem) in ZSTD_createDDict_advanced() argument 2031 if (!customMem.customAlloc || !customMem.customFree) in ZSTD_createDDict_advanced() 2035 ZSTD_DDict *const ddict = (ZSTD_DDict *)ZSTD_malloc(sizeof(ZSTD_DDict), customMem); in ZSTD_createDDict_advanced() 2038 ddict->cMem = customMem; in ZSTD_createDDict_advanced() [all …]
|
D | zstd_internal.h | 215 void *ZSTD_malloc(size_t size, ZSTD_customMem customMem); 216 void ZSTD_free(void *ptr, ZSTD_customMem customMem);
|