added ZSTDMT_createCCtx_advanced()

make it possible to use custom allocators
This commit is contained in:
Yann Collet
2017-05-30 16:12:06 -07:00
parent f45ca527a1
commit 44e45e8423
6 changed files with 118 additions and 66 deletions
+1
View File
@@ -244,6 +244,7 @@ void ZSTD_defaultFreeFunction(void* opaque, void* address);
static const ZSTD_customMem defaultCustomMem = { ZSTD_defaultAllocFunction, ZSTD_defaultFreeFunction, NULL };
#endif
void* ZSTD_malloc(size_t size, ZSTD_customMem customMem);
void* ZSTD_calloc(size_t size, ZSTD_customMem customMem);
void ZSTD_free(void* ptr, ZSTD_customMem customMem);