=************************************************************** * Custom allocator ****************************************************************/
| 7371 | * Custom allocator |
| 7372 | ****************************************************************/ |
| 7373 | void* ZSTD_malloc(size_t size, ZSTD_customMem customMem) |
| 7374 | { |
| 7375 | if (customMem.customAlloc) |
| 7376 | return customMem.customAlloc(customMem.opaque, size); |
| 7377 | return malloc(size); |
| 7378 | } |
| 7379 | |
| 7380 | void* ZSTD_calloc(size_t size, ZSTD_customMem customMem) |
| 7381 | { |
no test coverage detected