11#ifndef ZDICT_STATIC_LINKING_ONLY
12# define ZDICT_STATIC_LINKING_ONLY
15#include "../common/threading.h"
16#include "../common/mem.h"
88 const size_t *samplesSizes,
const BYTE *samples,
90 size_t nbTrainSamples,
size_t nbSamples,
91 BYTE *
const dict,
size_t dictBufferCapacity);
96size_t COVER_sum(
const size_t *samplesSizes,
unsigned nbSamples) ;
151 size_t dictContentSize,
const BYTE* samplesBuffer,
const size_t* samplesSizes,
unsigned nbFinalizeSamples,
152 size_t nbCheckSamples,
size_t nbSamples, ZDICT_cover_params_t params,
size_t* offsets,
size_t totalCompressedSize);
COVER_dictSelection_t COVER_dictSelectionError(size_t error)
COVER_epoch_info_t COVER_computeEpochs(U32 maxDictSize, U32 nbDmers, U32 k, U32 passes)
struct COVER_dictSelection COVER_dictSelection_t
void COVER_warnOnSmallCorpus(size_t maxDictSize, size_t nbDmers, int displayLevel)
void COVER_best_finish(COVER_best_t *best, ZDICT_cover_params_t parameters, COVER_dictSelection_t selection)
COVER_dictSelection_t COVER_selectDict(BYTE *customDictContent, size_t dictBufferCapacity, size_t dictContentSize, const BYTE *samplesBuffer, const size_t *samplesSizes, unsigned nbFinalizeSamples, size_t nbCheckSamples, size_t nbSamples, ZDICT_cover_params_t params, size_t *offsets, size_t totalCompressedSize)
size_t COVER_checkTotalCompressedSize(const ZDICT_cover_params_t parameters, const size_t *samplesSizes, const BYTE *samples, size_t *offsets, size_t nbTrainSamples, size_t nbSamples, BYTE *const dict, size_t dictBufferCapacity)
void COVER_dictSelectionFree(COVER_dictSelection_t selection)
void COVER_best_wait(COVER_best_t *best)
unsigned COVER_dictSelectionIsError(COVER_dictSelection_t selection)
size_t COVER_sum(const size_t *samplesSizes, unsigned nbSamples)
void COVER_best_start(COVER_best_t *best)
struct COVER_best_s COVER_best_t
void COVER_best_init(COVER_best_t *best)
void COVER_best_destroy(COVER_best_t *best)
ZSTD_pthread_mutex_t mutex
ZDICT_cover_params_t parameters
size_t totalCompressedSize