Lines Matching refs:customMem
56 void* ZSTD_customMalloc(size_t size, ZSTD_customMem customMem)
58 if (customMem.customAlloc)
59 return customMem.customAlloc(customMem.opaque, size);
63 void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem)
65 if (customMem.customAlloc) {
68 void* const ptr = customMem.customAlloc(customMem.opaque, size);
75 void ZSTD_customFree(void* ptr, ZSTD_customMem customMem)
78 if (customMem.customFree)
79 customMem.customFree(customMem.opaque, ptr);