=************************************************************** * Custom allocator ****************************************************************/
| 54 | * Custom allocator |
| 55 | ****************************************************************/ |
| 56 | void* ZSTD_customMalloc(size_t size, ZSTD_customMem customMem) |
| 57 | { |
| 58 | if (customMem.customAlloc) |
| 59 | return customMem.customAlloc(customMem.opaque, size); |
| 60 | return ZSTD_malloc(size); |
| 61 | } |
| 62 | |
| 63 | void* ZSTD_customCalloc(size_t size, ZSTD_customMem customMem) |
| 64 | { |
no test coverage detected