ReactOS 0.4.16-dev-125-g798ea90
|
#include <string.h>
#include "cpu.h"
#include "mem.h"
#include "fse.h"
#include "huf.h"
#include "zstd_decompress_internal.h"
#include "zstd_ddict.h"
Go to the source code of this file.
Classes | |
struct | ZSTD_DDict_s |
Macros | |
#define | FSE_STATIC_LINKING_ONLY |
#define | HUF_STATIC_LINKING_ONLY |
Functions | |
const void * | ZSTD_DDict_dictContent (const ZSTD_DDict *ddict) |
size_t | ZSTD_DDict_dictSize (const ZSTD_DDict *ddict) |
void | ZSTD_copyDDictParameters (ZSTD_DCtx *dctx, const ZSTD_DDict *ddict) |
static size_t | ZSTD_loadEntropy_intoDDict (ZSTD_DDict *ddict, ZSTD_dictContentType_e dictContentType) |
static size_t | ZSTD_initDDict_internal (ZSTD_DDict *ddict, const void *dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType) |
ZSTD_DDict * | ZSTD_createDDict_advanced (const void *dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType, ZSTD_customMem customMem) |
ZSTD_DDict * | ZSTD_createDDict (const void *dict, size_t dictSize) |
ZSTD_DDict * | ZSTD_createDDict_byReference (const void *dictBuffer, size_t dictSize) |
const ZSTD_DDict * | ZSTD_initStaticDDict (void *sBuffer, size_t sBufferSize, const void *dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType) |
size_t | ZSTD_freeDDict (ZSTD_DDict *ddict) |
size_t | ZSTD_estimateDDictSize (size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod) |
size_t | ZSTD_sizeof_DDict (const ZSTD_DDict *ddict) |
unsigned | ZSTD_getDictID_fromDDict (const ZSTD_DDict *ddict) |
#define FSE_STATIC_LINKING_ONLY |
Definition at line 20 of file zstd_ddict.c.
#define HUF_STATIC_LINKING_ONLY |
Definition at line 22 of file zstd_ddict.c.
void ZSTD_copyDDictParameters | ( | ZSTD_DCtx * | dctx, |
const ZSTD_DDict * | ddict | ||
) |
Definition at line 58 of file zstd_ddict.c.
Referenced by ZSTD_decompressBegin_usingDDict().
ZSTD_DDict * ZSTD_createDDict | ( | const void * | dict, |
size_t | dictSize | ||
) |
ZSTD_createDDict() : Create a digested dictionary, to start decompression without startup delay. dict
content is copied inside DDict. Consequently, dict
can be released after ZSTD_DDict
creation
Definition at line 170 of file zstd_ddict.c.
ZSTD_DDict * ZSTD_createDDict_advanced | ( | const void * | dict, |
size_t | dictSize, | ||
ZSTD_dictLoadMethod_e | dictLoadMethod, | ||
ZSTD_dictContentType_e | dictContentType, | ||
ZSTD_customMem | customMem | ||
) |
Definition at line 145 of file zstd_ddict.c.
Referenced by ZSTD_createDDict(), ZSTD_createDDict_byReference(), and ZSTD_DCtx_loadDictionary_advanced().
ZSTD_DDict * ZSTD_createDDict_byReference | ( | const void * | dictBuffer, |
size_t | dictSize | ||
) |
ZSTD_createDDict_byReference() : Create a digested dictionary, to start decompression without startup delay. Dictionary content is simply referenced, it will be accessed during decompression. Warning : dictBuffer must outlive DDict (DDict must be freed before dictBuffer)
Definition at line 180 of file zstd_ddict.c.
const void * ZSTD_DDict_dictContent | ( | const ZSTD_DDict * | ddict | ) |
Definition at line 46 of file zstd_ddict.c.
Referenced by ZSTD_decompressBegin_usingDDict(), ZSTD_decompressMultiFrame(), and ZSTD_decompressStream().
size_t ZSTD_DDict_dictSize | ( | const ZSTD_DDict * | ddict | ) |
Definition at line 52 of file zstd_ddict.c.
Referenced by ZSTD_decompressBegin_usingDDict(), ZSTD_decompressMultiFrame(), and ZSTD_decompressStream().
ZSTD_estimateDDictSize() : Estimate amount of memory that will be needed to create a dictionary for decompression. Note : dictionary created by reference using ZSTD_dlm_byRef are smaller
Definition at line 225 of file zstd_ddict.c.
size_t ZSTD_freeDDict | ( | ZSTD_DDict * | ddict | ) |
ZSTD_freeDDict() : Function frees memory allocated with ZSTD_createDDict()
Definition at line 212 of file zstd_ddict.c.
Referenced by ZSTD_clearDict(), and ZSTD_createDDict_advanced().
unsigned ZSTD_getDictID_fromDDict | ( | const ZSTD_DDict * | ddict | ) |
ZSTD_getDictID_fromDDict() : Provides the dictID of the dictionary loaded into ddict
. If
Definition at line 240 of file zstd_ddict.c.
|
static |
Definition at line 120 of file zstd_ddict.c.
Referenced by ZSTD_createDDict_advanced(), and ZSTD_initStaticDDict().
const ZSTD_DDict * ZSTD_initStaticDDict | ( | void * | sBuffer, |
size_t | sBufferSize, | ||
const void * | dict, | ||
size_t | dictSize, | ||
ZSTD_dictLoadMethod_e | dictLoadMethod, | ||
ZSTD_dictContentType_e | dictContentType | ||
) |
Definition at line 187 of file zstd_ddict.c.
|
static |
Definition at line 90 of file zstd_ddict.c.
Referenced by ZSTD_initDDict_internal().
size_t ZSTD_sizeof_DDict | ( | const ZSTD_DDict * | ddict | ) |