ZSTD_malloc() and ZSTD_free(), to simplify customMem

This commit is contained in:
Yann Collet
2016-08-28 21:05:43 -07:00
parent 080940c628
commit 23b6e05d8e
4 changed files with 95 additions and 90 deletions
+3
View File
@@ -220,6 +220,9 @@ int ZSTD_isSkipFrame(ZSTD_DCtx* dctx);
void* ZSTD_defaultAllocFunction(void* opaque, size_t size);
void ZSTD_defaultFreeFunction(void* opaque, void* address);
static const ZSTD_customMem defaultCustomMem = { ZSTD_defaultAllocFunction, ZSTD_defaultFreeFunction, NULL };
void* ZSTD_malloc(size_t size, ZSTD_customMem customMem);
void ZSTD_free(void* ptr, ZSTD_customMem customMem);
/*====== common function ======*/