Lines Matching defs:LZ4_dict
775 int LZ4_loadDict(LZ4_stream_t *LZ4_dict,
778 LZ4_stream_t_internal *dict = &LZ4_dict->internal_donotuse;
786 LZ4_resetStream(LZ4_dict);
812 static void LZ4_renormDictT(LZ4_stream_t_internal *LZ4_dict,
815 if ((LZ4_dict->currentOffset > 0x80000000) ||
816 ((uptrval)LZ4_dict->currentOffset > (uptrval)src)) {
819 U32 const delta = LZ4_dict->currentOffset - 64 * KB;
820 const BYTE *dictEnd = LZ4_dict->dictionary + LZ4_dict->dictSize;
824 if (LZ4_dict->hashTable[i] < delta)
825 LZ4_dict->hashTable[i] = 0;
827 LZ4_dict->hashTable[i] -= delta;
829 LZ4_dict->currentOffset = 64 * KB;
830 if (LZ4_dict->dictSize > 64 * KB)
831 LZ4_dict->dictSize = 64 * KB;
832 LZ4_dict->dictionary = dictEnd - LZ4_dict->dictSize;
836 int LZ4_saveDict(LZ4_stream_t *LZ4_dict, char *safeBuffer, int dictSize)
838 LZ4_stream_t_internal * const dict = &LZ4_dict->internal_donotuse;