Home
last modified time | relevance | path

Searched refs:dict (Results 1 – 6 of 6) sorted by relevance

/lib/xz/
Dxz_dec_lzma2.c268 struct dictionary dict; member
290 static void dict_reset(struct dictionary *dict, struct xz_buf *b) in dict_reset() argument
292 if (DEC_IS_SINGLE(dict->mode)) { in dict_reset()
293 dict->buf = b->out + b->out_pos; in dict_reset()
294 dict->end = b->out_size - b->out_pos; in dict_reset()
297 dict->start = 0; in dict_reset()
298 dict->pos = 0; in dict_reset()
299 dict->limit = 0; in dict_reset()
300 dict->full = 0; in dict_reset()
304 static void dict_limit(struct dictionary *dict, size_t out_max) in dict_limit() argument
[all …]
/lib/lz4/
Dlz4_compress.c184 const dict_directive dict, in LZ4_compress_generic() argument
212 switch (dict) { in LZ4_compress_generic()
269 if (dict == usingExtDict) { in LZ4_compress_generic()
338 if ((dict == usingExtDict) in LZ4_compress_generic()
404 if (dict == usingExtDict) { in LZ4_compress_generic()
778 LZ4_stream_t_internal *dict = &LZ4_dict->internal_donotuse; in LZ4_loadDict() local
783 if ((dict->initCheck) in LZ4_loadDict()
784 || (dict->currentOffset > 1 * GB)) { in LZ4_loadDict()
790 dict->dictionary = NULL; in LZ4_loadDict()
791 dict->dictSize = 0; in LZ4_loadDict()
[all …]
Dlz4_decompress.c74 dict_directive dict, in LZ4_decompress_generic() argument
173 (dict == withPrefix64k || match >= lowPrefix)) { in LZ4_decompress_generic()
337 if ((dict == usingExtDict) && (match < lowPrefix)) { in LZ4_decompress_generic()
/lib/zstd/
Ddecompress.c1643 … void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, in ZSTD_decompressMultiFrame() argument
1649 if (dict) { in ZSTD_decompressMultiFrame()
1654 dict = ZSTD_DDictDictContent(ddict); in ZSTD_decompressMultiFrame()
1686 CHECK_F(ZSTD_decompressBegin_usingDict(dctx, dict, dictSize)); in ZSTD_decompressMultiFrame()
1707 … void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize) in ZSTD_decompress_usingDict() argument
1709 return ZSTD_decompressMultiFrame(dctx, dst, dstCapacity, src, srcSize, dict, dictSize, NULL); in ZSTD_decompress_usingDict()
1862 static size_t ZSTD_refDictContent(ZSTD_DCtx *dctx, const void *dict, size_t dictSize) in ZSTD_refDictContent() argument
1865 …dctx->vBase = (const char *)dict - ((const char *)(dctx->previousDstEnd) - (const char *)(dctx->ba… in ZSTD_refDictContent()
1866 dctx->base = dict; in ZSTD_refDictContent()
1867 dctx->previousDstEnd = (const char *)dict + dictSize; in ZSTD_refDictContent()
[all …]
Dcompress.c2626 static size_t ZSTD_loadZstdDictionary(ZSTD_CCtx *cctx, const void *dict, size_t dictSize) in ZSTD_loadZstdDictionary() argument
2628 const BYTE *dictPtr = (const BYTE *)dict; in ZSTD_loadZstdDictionary()
2723 static size_t ZSTD_compress_insertDictionary(ZSTD_CCtx *cctx, const void *dict, size_t dictSize) in ZSTD_compress_insertDictionary() argument
2725 if ((dict == NULL) || (dictSize <= 8)) in ZSTD_compress_insertDictionary()
2729 if ((ZSTD_readLE32(dict) != ZSTD_DICT_MAGIC) || (cctx->forceRawDict)) in ZSTD_compress_insertDictionary()
2730 return ZSTD_loadDictionaryContent(cctx, dict, dictSize); in ZSTD_compress_insertDictionary()
2733 return ZSTD_loadZstdDictionary(cctx, dict, dictSize); in ZSTD_compress_insertDictionary()
2738 static size_t ZSTD_compressBegin_internal(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_… in ZSTD_compressBegin_internal() argument
2742 return ZSTD_compress_insertDictionary(cctx, dict, dictSize); in ZSTD_compressBegin_internal()
2747 size_t ZSTD_compressBegin_advanced(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_paramet… in ZSTD_compressBegin_advanced() argument
[all …]
/lib/lzo/
Dlzo1x_compress.c32 lzo_dict_t * const dict = (lzo_dict_t *) wrkmem; in lzo1x_1_do_compress() local
109 m_pos = in + dict[t]; in lzo1x_1_do_compress()
110 dict[t] = (lzo_dict_t) (ip - in); in lzo1x_1_do_compress()