Home | History | Annotate | Download | only in lib

Lines Matching defs:dictSize

474     const BYTE* const lowRefLimit = ip - cctx->dictSize;
476 const BYTE* const dictEnd = dictionary + cctx->dictSize;
499 lowLimit = (const BYTE*)source - cctx->dictSize;
936 int LZ4_loadDict (LZ4_stream_t* LZ4_dict, const char* dictionary, int dictSize)
940 const BYTE* const dictEnd = p + dictSize;
946 if (dictSize < (int)HASH_UNIT) {
948 dict->dictSize = 0;
956 dict->dictSize = (U32)(dictEnd - p);
957 dict->currentOffset += dict->dictSize;
964 return dict->dictSize;
974 const BYTE* dictEnd = LZ4_dict->dictionary + LZ4_dict->dictSize;
981 if (LZ4_dict->dictSize > 64 KB) LZ4_dict->dictSize = 64 KB;
982 LZ4_dict->dictionary = dictEnd - LZ4_dict->dictSize;
990 const BYTE* const dictEnd = streamPtr->dictionary + streamPtr->dictSize;
994 if ((streamPtr->dictSize>0) && (smallest>dictEnd)) smallest = dictEnd;
1001 streamPtr->dictSize = (U32)(dictEnd - sourceEnd);
1002 if (streamPtr->dictSize > 64 KB) streamPtr->dictSize = 64 KB;
1003 if (streamPtr->dictSize < 4) streamPtr->dictSize = 0;
1004 streamPtr->dictionary = dictEnd - streamPtr->dictSize;
1011 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset))
1015 streamPtr->dictSize += (U32)inputSize;
1022 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset))
1027 streamPtr->dictSize = (U32)inputSize;
1039 const BYTE* const dictEnd = streamPtr->dictionary + streamPtr->dictSize;
1048 streamPtr->dictSize = (U32)inputSize;
1060 * Return : saved dictionary size in bytes (necessarily <= dictSize), or 0 if error.
1062 int LZ4_saveDict (LZ4_stream_t* LZ4_dict, char* safeBuffer, int dictSize)
1065 const BYTE* const previousDictEnd = dict->dictionary + dict->dictSize;
1067 if ((U32)dictSize > 64 KB) dictSize = 64 KB; /* useless to define a dictionary > 64 KB */
1068 if ((U32)dictSize > dict->dictSize) dictSize = dict->dictSize;
1070 memmove(safeBuffer, previousDictEnd - dictSize, dictSize);
1073 dict->dictSize = (U32)dictSize;
1075 return dictSize;
1101 const size_t dictSize /* note : = 0 if noDict */
1112 const BYTE* const lowLimit = lowPrefix - dictSize;
1114 const BYTE* const dictEnd = (const BYTE*)dictStart + dictSize;
1119 const int checkOffset = ((safeDecode) && (dictSize < (int)(64 KB)));
1293 int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize)
1296 lz4sd->prefixSize = (size_t) dictSize;
1297 lz4sd->prefixEnd = (const BYTE*) dictionary + dictSize;
1370 FORCE_INLINE int LZ4_decompress_usingDict_generic(const char* source, char* dest, int compressedSize, int maxOutputSize, int safe, const char* dictStart, int dictSize)
1372 if (dictSize==0)
1374 if (dictStart+dictSize == dest) {
1375 if (dictSize >= (int)(64 KB - 1))
1377 return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, safe, full, 0, noDict, (BYTE*)dest-dictSize, NULL, 0);
1379 return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, safe, full, 0, usingExtDict, (BYTE*)dest, (const BYTE*)dictStart, dictSize);
1382 int LZ4_decompress_safe_usingDict(const char* source, char* dest, int compressedSize, int maxOutputSize, const char* dictStart, int dictSize)
1384 return LZ4_decompress_usingDict_generic(source, dest, compressedSize, maxOutputSize, 1, dictStart, dictSize);
1387 int LZ4_decompress_fast_usingDict(const char* source, char* dest, int originalSize, const char* dictStart, int dictSize)
1389 return LZ4_decompress_usingDict_generic(source, dest, 0, originalSize, 0, dictStart, dictSize);
1393 int LZ4_decompress_safe_forceExtDict(const char* source, char* dest, int compressedSize, int maxOutputSize, const char* dictStart, int dictSize)
1395 return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, endOnInputSize, full, 0, usingExtDict, (BYTE*)dest, (const BYTE*)dictStart, dictSize);
1447 int dictSize = LZ4_saveDict((LZ4_stream_t*)LZ4_Data, (char*)ctx->bufferStart, 64 KB);
1448 return (char*)(ctx->bufferStart + dictSize);