Lines Matching refs:dictSize
506 …orceExtDict(const char* in, char* out, int inSize, int outSize, const void* dict, size_t dictSize);
644 cctx->dictSize = 0; in LZ4_prepareTable()
671 const U32 dictSize = in LZ4_compress_generic() local
672 dictDirective == usingDictCtx ? dictCtx->dictSize : cctx->dictSize; in LZ4_compress_generic()
676 U32 const prefixIdxLimit = startIndex - dictSize; /* used when dictDirective == dictSmall */ in LZ4_compress_generic()
677 const BYTE* const dictEnd = dictionary + dictSize; in LZ4_compress_generic()
686 dictionary + dictSize - dictCtx->currentOffset : in LZ4_compress_generic()
687 dictionary + dictSize - startIndex; in LZ4_compress_generic()
703 lowLimit = (const BYTE*)source - (dictDirective == withPrefix64k ? dictSize : 0); in LZ4_compress_generic()
710 cctx->dictSize = (U32)inputSize; in LZ4_compress_generic()
712 cctx->dictSize += (U32)inputSize; in LZ4_compress_generic()
1190 int LZ4_loadDict (LZ4_stream_t* LZ4_dict, const char* dictionary, int dictSize) in LZ4_loadDict() argument
1195 const BYTE* const dictEnd = p + dictSize; in LZ4_loadDict()
1198 DEBUGLOG(4, "LZ4_loadDict (%i bytes from %p into %p)", dictSize, dictionary, LZ4_dict); in LZ4_loadDict()
1216 dict->dictSize = (U32)(dictEnd - p); in LZ4_loadDict()
1220 if (dictSize < (int)HASH_UNIT) { in LZ4_loadDict()
1229 return dict->dictSize; in LZ4_loadDict()
1254 const BYTE* dictEnd = LZ4_dict->dictionary + LZ4_dict->dictSize; in LZ4_renormDictT()
1262 if (LZ4_dict->dictSize > 64 KB) LZ4_dict->dictSize = 64 KB; in LZ4_renormDictT()
1263 LZ4_dict->dictionary = dictEnd - LZ4_dict->dictSize; in LZ4_renormDictT()
1272 const BYTE* dictEnd = streamPtr->dictionary + streamPtr->dictSize; in LZ4_compress_fast_continue()
1281 if ( (streamPtr->dictSize-1 < 4) /* intentional underflow */ in LZ4_compress_fast_continue()
1283 …mpress_fast_continue: dictSize(%u) at addr:%p is too small", streamPtr->dictSize, streamPtr->dicti… in LZ4_compress_fast_continue()
1284 streamPtr->dictSize = 0; in LZ4_compress_fast_continue()
1292 streamPtr->dictSize = (U32)(dictEnd - sourceEnd); in LZ4_compress_fast_continue()
1293 if (streamPtr->dictSize > 64 KB) streamPtr->dictSize = 64 KB; in LZ4_compress_fast_continue()
1294 if (streamPtr->dictSize < 4) streamPtr->dictSize = 0; in LZ4_compress_fast_continue()
1295 streamPtr->dictionary = dictEnd - streamPtr->dictSize; in LZ4_compress_fast_continue()
1301 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset)) in LZ4_compress_fast_continue()
1327 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset)) { in LZ4_compress_fast_continue()
1334 streamPtr->dictSize = (U32)inputSize; in LZ4_compress_fast_continue()
1348 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset)) { in LZ4_compress_forceExtDict()
1355 streamPtr->dictSize = (U32)srcSize; in LZ4_compress_forceExtDict()
1368 int LZ4_saveDict (LZ4_stream_t* LZ4_dict, char* safeBuffer, int dictSize) in LZ4_saveDict() argument
1371 const BYTE* const previousDictEnd = dict->dictionary + dict->dictSize; in LZ4_saveDict()
1373 if ((U32)dictSize > 64 KB) dictSize = 64 KB; /* useless to define a dictionary > 64 KB */ in LZ4_saveDict()
1374 if ((U32)dictSize > dict->dictSize) dictSize = dict->dictSize; in LZ4_saveDict()
1376 memmove(safeBuffer, previousDictEnd - dictSize, dictSize); in LZ4_saveDict()
1379 dict->dictSize = (U32)dictSize; in LZ4_saveDict()
1381 return dictSize; in LZ4_saveDict()
1414 const size_t dictSize /* note : = 0 if noDict */ in LZ4_decompress_generic() argument
1424 const BYTE* const dictEnd = (const BYTE*)dictStart + dictSize; in LZ4_decompress_generic()
1429 const int checkOffset = ((safeDecode) && (dictSize < (int)(64 KB))); in LZ4_decompress_generic()
1541 …if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) goto _output_error; /* Error : of… in LZ4_decompress_generic()
1705 const void* dictStart, size_t dictSize) in LZ4_decompress_safe_forceExtDict() argument
1709 (BYTE*)dest, (const BYTE*)dictStart, dictSize); in LZ4_decompress_safe_forceExtDict()
1714 const void* dictStart, size_t dictSize) in LZ4_decompress_fast_extDict() argument
1718 (BYTE*)dest, (const BYTE*)dictStart, dictSize); in LZ4_decompress_fast_extDict()
1727 size_t prefixSize, const void* dictStart, size_t dictSize) in LZ4_decompress_safe_doubleDict() argument
1731 (BYTE*)dest-prefixSize, (const BYTE*)dictStart, dictSize); in LZ4_decompress_safe_doubleDict()
1736 size_t prefixSize, const void* dictStart, size_t dictSize) in LZ4_decompress_fast_doubleDict() argument
1740 (BYTE*)dest-prefixSize, (const BYTE*)dictStart, dictSize); in LZ4_decompress_fast_doubleDict()
1764 int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize) in LZ4_setStreamDecode() argument
1767 lz4sd->prefixSize = (size_t) dictSize; in LZ4_setStreamDecode()
1768 lz4sd->prefixEnd = (const BYTE*) dictionary + dictSize; in LZ4_setStreamDecode()
1882 …ar* source, char* dest, int compressedSize, int maxOutputSize, const char* dictStart, int dictSize) in LZ4_decompress_safe_usingDict() argument
1884 if (dictSize==0) in LZ4_decompress_safe_usingDict()
1886 if (dictStart+dictSize == dest) { in LZ4_decompress_safe_usingDict()
1887 if (dictSize >= 64 KB - 1) in LZ4_decompress_safe_usingDict()
1889 … return LZ4_decompress_safe_withSmallPrefix(source, dest, compressedSize, maxOutputSize, dictSize); in LZ4_decompress_safe_usingDict()
1891 …LZ4_decompress_safe_forceExtDict(source, dest, compressedSize, maxOutputSize, dictStart, dictSize); in LZ4_decompress_safe_usingDict()
1894 …st_usingDict(const char* source, char* dest, int originalSize, const char* dictStart, int dictSize) in LZ4_decompress_fast_usingDict() argument
1896 if (dictSize==0 || dictStart+dictSize == dest) in LZ4_decompress_fast_usingDict()
1898 return LZ4_decompress_fast_extDict(source, dest, originalSize, dictStart, dictSize); in LZ4_decompress_fast_usingDict()