Lines Matching refs:dictSize

191 	const BYTE * const lowRefLimit = ip - dictPtr->dictSize;  in LZ4_compress_generic()
193 const BYTE * const dictEnd = dictionary + dictPtr->dictSize; in LZ4_compress_generic()
220 lowLimit = (const BYTE *)source - dictPtr->dictSize; in LZ4_compress_generic()
776 const char *dictionary, int dictSize) in LZ4_loadDict() argument
780 const BYTE * const dictEnd = p + dictSize; in LZ4_loadDict()
789 if (dictSize < (int)HASH_UNIT) { in LZ4_loadDict()
791 dict->dictSize = 0; in LZ4_loadDict()
800 dict->dictSize = (U32)(dictEnd - p); in LZ4_loadDict()
801 dict->currentOffset += dict->dictSize; in LZ4_loadDict()
808 return dict->dictSize; in LZ4_loadDict()
820 const BYTE *dictEnd = LZ4_dict->dictionary + LZ4_dict->dictSize; in LZ4_renormDictT()
830 if (LZ4_dict->dictSize > 64 * KB) in LZ4_renormDictT()
831 LZ4_dict->dictSize = 64 * KB; in LZ4_renormDictT()
832 LZ4_dict->dictionary = dictEnd - LZ4_dict->dictSize; in LZ4_renormDictT()
836 int LZ4_saveDict(LZ4_stream_t *LZ4_dict, char *safeBuffer, int dictSize) in LZ4_saveDict() argument
839 const BYTE * const previousDictEnd = dict->dictionary + dict->dictSize; in LZ4_saveDict()
841 if ((U32)dictSize > 64 * KB) { in LZ4_saveDict()
843 dictSize = 64 * KB; in LZ4_saveDict()
845 if ((U32)dictSize > dict->dictSize) in LZ4_saveDict()
846 dictSize = dict->dictSize; in LZ4_saveDict()
848 memmove(safeBuffer, previousDictEnd - dictSize, dictSize); in LZ4_saveDict()
851 dict->dictSize = (U32)dictSize; in LZ4_saveDict()
853 return dictSize; in LZ4_saveDict()
862 + streamPtr->dictSize; in LZ4_compress_fast_continue()
871 if ((streamPtr->dictSize > 0) && (smallest > dictEnd)) in LZ4_compress_fast_continue()
885 streamPtr->dictSize = (U32)(dictEnd - sourceEnd); in LZ4_compress_fast_continue()
886 if (streamPtr->dictSize > 64 * KB) in LZ4_compress_fast_continue()
887 streamPtr->dictSize = 64 * KB; in LZ4_compress_fast_continue()
888 if (streamPtr->dictSize < 4) in LZ4_compress_fast_continue()
889 streamPtr->dictSize = 0; in LZ4_compress_fast_continue()
890 streamPtr->dictionary = dictEnd - streamPtr->dictSize; in LZ4_compress_fast_continue()
898 if ((streamPtr->dictSize < 64 * KB) && in LZ4_compress_fast_continue()
899 (streamPtr->dictSize < streamPtr->currentOffset)) { in LZ4_compress_fast_continue()
910 streamPtr->dictSize += (U32)inputSize; in LZ4_compress_fast_continue()
919 if ((streamPtr->dictSize < 64 * KB) && in LZ4_compress_fast_continue()
920 (streamPtr->dictSize < streamPtr->currentOffset)) { in LZ4_compress_fast_continue()
932 streamPtr->dictSize = (U32)inputSize; in LZ4_compress_fast_continue()