added ZSTD_createCCtx_advanced

This commit is contained in:
inikep
2016-05-23 15:49:09 +02:00
parent 35b891c5b0
commit 50e82c015d
2 changed files with 43 additions and 11 deletions
+9
View File
@@ -94,10 +94,19 @@ typedef struct {
ZSTD_frameParameters fParams;
} ZSTD_parameters;
typedef void* (*ZSTD_allocFunction) (size_t size);
typedef void (*ZSTD_freeFunction) (void* address);
typedef struct { ZSTD_allocFunction customAlloc; ZSTD_freeFunction customFree; } ZSTD_customMem;
/*-*************************************
* Advanced functions
***************************************/
/*! ZSTD_createCCtx_advanced() :
* Create ZSTD context using external alloc and free functions */
ZSTDLIB_API ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem);
ZSTDLIB_API unsigned ZSTD_maxCLevel (void);
/*! ZSTD_getCParams() :