Go to the documentation of this file.
11 #if defined (__cplusplus)
23 #ifndef ZDICTLIB_VISIBLE
25 # ifdef ZDICTLIB_VISIBILITY
26 # define ZDICTLIB_VISIBLE ZDICTLIB_VISIBILITY
27 # elif defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__)
28 # define ZDICTLIB_VISIBLE __attribute__ ((visibility ("default")))
30 # define ZDICTLIB_VISIBLE
34 #ifndef ZDICTLIB_HIDDEN
35 # if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__)
36 # define ZDICTLIB_HIDDEN __attribute__ ((visibility ("hidden")))
38 # define ZDICTLIB_HIDDEN
42 #if defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1)
43 # define ZDICTLIB_API __declspec(dllexport) ZDICTLIB_VISIBLE
44 #elif defined(ZSTD_DLL_IMPORT) && (ZSTD_DLL_IMPORT==1)
45 # define ZDICTLIB_API __declspec(dllimport) ZDICTLIB_VISIBLE
47 # define ZDICTLIB_API ZDICTLIB_VISIBLE
211 const void* samplesBuffer,
212 const size_t* samplesSizes,
unsigned nbSamples);
216 unsigned notificationLevel;
263 const void* dictContent,
size_t dictContentSize,
264 const void* samplesBuffer,
const size_t* samplesSizes,
unsigned nbSamples,
276 #if defined(ZDICT_STATIC_LINKING_ONLY) && !defined(ZSTD_ZDICT_H_STATIC)
277 #define ZSTD_ZDICT_H_STATIC
280 #ifndef ZDICTLIB_STATIC_API
281 # if defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1)
282 # define ZDICTLIB_STATIC_API __declspec(dllexport) ZDICTLIB_VISIBLE
283 # elif defined(ZSTD_DLL_IMPORT) && (ZSTD_DLL_IMPORT==1)
284 # define ZDICTLIB_STATIC_API __declspec(dllimport) ZDICTLIB_VISIBLE
286 # define ZDICTLIB_STATIC_API ZDICTLIB_VISIBLE
297 #define ZDICT_DICTSIZE_MIN 256
299 #define ZDICT_CONTENTSIZE_MIN 128
312 unsigned shrinkDictMaxRegression;
325 unsigned shrinkDictMaxRegression;
345 void *dictBuffer,
size_t dictBufferCapacity,
346 const void *samplesBuffer,
const size_t *samplesSizes,
unsigned nbSamples,
367 void* dictBuffer,
size_t dictBufferCapacity,
368 const void* samplesBuffer,
const size_t* samplesSizes,
unsigned nbSamples,
388 size_t dictBufferCapacity,
const void *samplesBuffer,
389 const size_t *samplesSizes,
unsigned nbSamples,
411 size_t dictBufferCapacity,
const void* samplesBuffer,
412 const size_t* samplesSizes,
unsigned nbSamples,
416 unsigned selectivityLevel;
436 void* dictBuffer,
size_t dictBufferCapacity,
437 const void* samplesBuffer,
const size_t* samplesSizes,
unsigned nbSamples,
446 #ifdef ZDICT_DISABLE_DEPRECATE_WARNINGS
447 # define ZDICT_DEPRECATED(message)
449 # define ZDICT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
450 # if defined (__cplusplus) && (__cplusplus >= 201402)
451 # define ZDICT_DEPRECATED(message) [[deprecated(message)]]
452 # elif defined(__clang__) || (ZDICT_GCC_VERSION >= 405)
453 # define ZDICT_DEPRECATED(message) __attribute__((deprecated(message)))
454 # elif (ZDICT_GCC_VERSION >= 301)
455 # define ZDICT_DEPRECATED(message) __attribute__((deprecated))
456 # elif defined(_MSC_VER)
457 # define ZDICT_DEPRECATED(message) __declspec(deprecated(message))
459 # pragma message("WARNING: You need to implement ZDICT_DEPRECATED for this compiler")
460 # define ZDICT_DEPRECATED(message)
467 const
void* samplesBuffer, const
size_t* samplesSizes,
unsigned nbSamples);
472 #if defined (__cplusplus)
ZDICTLIB_API size_t ZDICT_trainFromBuffer(void *dictBuffer, size_t dictBufferCapacity, const void *samplesBuffer, const size_t *samplesSizes, unsigned nbSamples)
ZDICTLIB_STATIC_API size_t ZDICT_addEntropyTablesFromBuffer(void *dictBuffer, size_t dictContentSize, size_t dictBufferCapacity, const void *samplesBuffer, const size_t *samplesSizes, unsigned nbSamples)
ZDICTLIB_STATIC_API size_t ZDICT_trainFromBuffer_legacy(void *dictBuffer, size_t dictBufferCapacity, const void *samplesBuffer, const size_t *samplesSizes, unsigned nbSamples, ZDICT_legacy_params_t parameters)
ZDICTLIB_STATIC_API size_t ZDICT_optimizeTrainFromBuffer_fastCover(void *dictBuffer, size_t dictBufferCapacity, const void *samplesBuffer, const size_t *samplesSizes, unsigned nbSamples, ZDICT_fastCover_params_t *parameters)
ZDICTLIB_API size_t ZDICT_getDictHeaderSize(const void *dictBuffer, size_t dictSize)
ZDICTLIB_STATIC_API size_t ZDICT_trainFromBuffer_cover(void *dictBuffer, size_t dictBufferCapacity, const void *samplesBuffer, const size_t *samplesSizes, unsigned nbSamples, ZDICT_cover_params_t parameters)
ZDICTLIB_STATIC_API size_t ZDICT_optimizeTrainFromBuffer_cover(void *dictBuffer, size_t dictBufferCapacity, const void *samplesBuffer, const size_t *samplesSizes, unsigned nbSamples, ZDICT_cover_params_t *parameters)
ZDICTLIB_STATIC_API size_t ZDICT_trainFromBuffer_fastCover(void *dictBuffer, size_t dictBufferCapacity, const void *samplesBuffer, const size_t *samplesSizes, unsigned nbSamples, ZDICT_fastCover_params_t parameters)
#define ZDICTLIB_STATIC_API
#define ZDICT_DEPRECATED(message)
ZDICTLIB_API unsigned ZDICT_getDictID(const void *dictBuffer, size_t dictSize)
char int int compressionLevel
ZDICTLIB_API unsigned ZDICT_isError(size_t errorCode)
const ZDICTLIB_API char * ZDICT_getErrorName(size_t errorCode)
ZDICTLIB_API size_t ZDICT_finalizeDictionary(void *dstDictBuffer, size_t maxDictSize, const void *dictContent, size_t dictContentSize, const void *samplesBuffer, const size_t *samplesSizes, unsigned nbSamples, ZDICT_params_t parameters)
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:48