Lines Matching refs:dictSize
441 U32 dictSize; member
514 const BYTE* const lowRefLimit = ip - dictPtr->dictSize; in LZ4_compress_generic()
516 const BYTE* const dictEnd = dictionary + dictPtr->dictSize; in LZ4_compress_generic()
540 lowLimit = (const BYTE*)source - dictPtr->dictSize; in LZ4_compress_generic()
780 int LZ4_loadDict (LZ4_stream_t* LZ4_dict, const char* dictionary, int dictSize) in LZ4_loadDict() argument
784 const BYTE* const dictEnd = p + dictSize; in LZ4_loadDict()
789 if (dictSize < MINMATCH) in LZ4_loadDict()
792 dict->dictSize = 0; in LZ4_loadDict()
799 dict->dictSize = (U32)(dictEnd - p); in LZ4_loadDict()
800 dict->currentOffset += dict->dictSize; in LZ4_loadDict()
808 return dict->dictSize; in LZ4_loadDict()
819 const BYTE* dictEnd = LZ4_dict->dictionary + LZ4_dict->dictSize; in LZ4_renormDictT()
827 if (LZ4_dict->dictSize > 64 KB) LZ4_dict->dictSize = 64 KB; in LZ4_renormDictT()
828 LZ4_dict->dictionary = dictEnd - LZ4_dict->dictSize; in LZ4_renormDictT()
837 const BYTE* const dictEnd = streamPtr->dictionary + streamPtr->dictSize; in LZ4_compress_continue_generic()
841 if ((streamPtr->dictSize>0) && (smallest>dictEnd)) smallest = dictEnd; in LZ4_compress_continue_generic()
849 streamPtr->dictSize = (U32)(dictEnd - sourceEnd); in LZ4_compress_continue_generic()
850 if (streamPtr->dictSize > 64 KB) streamPtr->dictSize = 64 KB; in LZ4_compress_continue_generic()
851 if (streamPtr->dictSize < 4) streamPtr->dictSize = 0; in LZ4_compress_continue_generic()
852 streamPtr->dictionary = dictEnd - streamPtr->dictSize; in LZ4_compress_continue_generic()
860 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset)) in LZ4_compress_continue_generic()
864 streamPtr->dictSize += (U32)inputSize; in LZ4_compress_continue_generic()
872 if ((streamPtr->dictSize < 64 KB) && (streamPtr->dictSize < streamPtr->currentOffset)) in LZ4_compress_continue_generic()
877 streamPtr->dictSize = (U32)inputSize; in LZ4_compress_continue_generic()
899 const BYTE* const dictEnd = streamPtr->dictionary + streamPtr->dictSize; in LZ4_compress_forceExtDict()
908 streamPtr->dictSize = (U32)inputSize; in LZ4_compress_forceExtDict()
915 int LZ4_saveDict (LZ4_stream_t* LZ4_dict, char* safeBuffer, int dictSize) in LZ4_saveDict() argument
918 const BYTE* previousDictEnd = dict->dictionary + dict->dictSize; in LZ4_saveDict()
920 if ((U32)dictSize > 64 KB) dictSize = 64 KB; /* useless to define a dictionary > 64 KB */ in LZ4_saveDict()
921 if ((U32)dictSize > dict->dictSize) dictSize = dict->dictSize; in LZ4_saveDict()
923 memmove(safeBuffer, previousDictEnd - dictSize, dictSize); in LZ4_saveDict()
926 dict->dictSize = (U32)dictSize; in LZ4_saveDict()
928 return dictSize; in LZ4_saveDict()
954 const size_t dictSize /* note : = 0 if noDict */ in LZ4_decompress_generic() argument
965 const BYTE* const lowLimit = lowPrefix - dictSize; in LZ4_decompress_generic()
967 const BYTE* const dictEnd = (const BYTE*)dictStart + dictSize; in LZ4_decompress_generic()
972 const int checkOffset = ((safeDecode) && (dictSize < (int)(64 KB))); in LZ4_decompress_generic()
1171 int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize) in LZ4_setStreamDecode() argument
1174 lz4sd->prefixSize = (size_t) dictSize; in LZ4_setStreamDecode()
1175 lz4sd->prefixEnd = (BYTE*) dictionary + dictSize; in LZ4_setStreamDecode()
1254 …, char* dest, int compressedSize, int maxOutputSize, int safe, const char* dictStart, int dictSize) in LZ4_decompress_usingDict_generic() argument
1256 if (dictSize==0) in LZ4_decompress_usingDict_generic()
1258 if (dictStart+dictSize == dest) in LZ4_decompress_usingDict_generic()
1260 if (dictSize >= (int)(64 KB - 1)) in LZ4_decompress_usingDict_generic()
1262 …source, dest, compressedSize, maxOutputSize, safe, full, 0, noDict, (BYTE*)dest-dictSize, NULL, 0); in LZ4_decompress_usingDict_generic()
1264 …mpressedSize, maxOutputSize, safe, full, 0, usingExtDict, (BYTE*)dest, (BYTE*)dictStart, dictSize); in LZ4_decompress_usingDict_generic()
1267 …ar* source, char* dest, int compressedSize, int maxOutputSize, const char* dictStart, int dictSize) in LZ4_decompress_safe_usingDict() argument
1269 …_decompress_usingDict_generic(source, dest, compressedSize, maxOutputSize, 1, dictStart, dictSize); in LZ4_decompress_safe_usingDict()
1272 …st_usingDict(const char* source, char* dest, int originalSize, const char* dictStart, int dictSize) in LZ4_decompress_fast_usingDict() argument
1274 return LZ4_decompress_usingDict_generic(source, dest, 0, originalSize, 0, dictStart, dictSize); in LZ4_decompress_fast_usingDict()
1278 …ar* source, char* dest, int compressedSize, int maxOutputSize, const char* dictStart, int dictSize) in LZ4_decompress_safe_forceExtDict() argument
1280 …ze, maxOutputSize, endOnInputSize, full, 0, usingExtDict, (BYTE*)dest, (BYTE*)dictStart, dictSize); in LZ4_decompress_safe_forceExtDict()
1324 int dictSize = LZ4_saveDict((LZ4_stream_t*)ctx, (char*)ctx->bufferStart, 64 KB); in LZ4_slideInputBuffer() local
1325 return (char*)(ctx->bufferStart + dictSize); in LZ4_slideInputBuffer()