Lines Matching refs:UInt32
9 UInt32 _cyclicBufferPos;
10 UInt32 _cyclicBufferSize = 0;
11 UInt32 _matchMaxLen;
13 UInt32[] _son;
14 UInt32[] _hash;
16 UInt32 _cutValue = 0xFF;
17 UInt32 _hashMask;
18 UInt32 _hashSizeSum = 0;
22 const UInt32 kHash2Size = 1 << 10;
23 const UInt32 kHash3Size = 1 << 16;
24 const UInt32 kBT2HashSize = 1 << 16;
25 const UInt32 kStartMaxLen = 1;
26 const UInt32 kHash3Offset = kHash2Size;
27 const UInt32 kEmptyHashValue = 0;
28 const UInt32 kMaxValForNormalize = ((UInt32)1 << 31) - 1;
30 UInt32 kNumHashDirectBytes = 0;
31 UInt32 kMinMatchCheck = 4;
32 UInt32 kFixHashSize = kHash2Size + kHash3Size;
57 for (UInt32 i = 0; i < _hashSizeSum; i++)
74 public new UInt32 GetMatchLen(Int32 index, UInt32 distance, UInt32 limit)
77 public new UInt32 GetNumAvailableBytes() { return base.GetNumAvailableBytes(); }
79 public void Create(UInt32 historySize, UInt32 keepAddBufferBefore,
80 UInt32 matchMaxLen, UInt32 keepAddBufferAfter)
86 UInt32 windowReservSize = (historySize + keepAddBufferBefore +
93 UInt32 cyclicBufferSize = historySize + 1;
95 _son = new UInt32[(_cyclicBufferSize = cyclicBufferSize) * 2];
97 UInt32 hs = kBT2HashSize;
115 _hash = new UInt32[_hashSizeSum = hs];
118 public UInt32 GetMatches(UInt32[] distances)
120 UInt32 lenLimit;
133 UInt32 offset = 0;
134 UInt32 matchMinPos = (_pos > _cyclicBufferSize) ? (_pos - _cyclicBufferSize) : 0;
135 UInt32 cur = _bufferOffset + _pos;
136 UInt32 maxLen = kStartMaxLen; // to avoid items for len < hashSize;
137 UInt32 hashValue, hash2Value = 0, hash3Value = 0;
141 UInt32 temp = CRC.Table[_bufferBase[cur]] ^ _bufferBase[cur + 1];
143 temp ^= ((UInt32)(_bufferBase[cur + 2]) << 8);
148 hashValue = _bufferBase[cur] ^ ((UInt32)(_bufferBase[cur + 1]) << 8);
150 UInt32 curMatch = _hash[kFixHashSize + hashValue];
153 UInt32 curMatch2 = _hash[hash2Value];
154 UInt32 curMatch3 = _hash[kHash3Offset + hash3Value];
181 UInt32 ptr0 = (_cyclicBufferPos << 1) + 1;
182 UInt32 ptr1 = (_cyclicBufferPos << 1);
184 UInt32 len0, len1;
200 UInt32 count = _cutValue;
209 UInt32 delta = _pos - curMatch;
210 UInt32 cyclicPos = ((delta <= _cyclicBufferPos) ?
214 UInt32 pby1 = _bufferOffset + curMatch;
215 UInt32 len = Math.Min(len0, len1);
252 public void Skip(UInt32 num)
256 UInt32 lenLimit;
269 UInt32 matchMinPos = (_pos > _cyclicBufferSize) ? (_pos - _cyclicBufferSize) : 0;
270 UInt32 cur = _bufferOffset + _pos;
272 UInt32 hashValue;
276 UInt32 temp = CRC.Table[_bufferBase[cur]] ^ _bufferBase[cur + 1];
277 UInt32 hash2Value = temp & (kHash2Size - 1);
279 temp ^= ((UInt32)(_bufferBase[cur + 2]) << 8);
280 UInt32 hash3Value = temp & (kHash3Size - 1);
285 hashValue = _bufferBase[cur] ^ ((UInt32)(_bufferBase[cur + 1]) << 8);
287 UInt32 curMatch = _hash[kFixHashSize + hashValue];
290 UInt32 ptr0 = (_cyclicBufferPos << 1) + 1;
291 UInt32 ptr1 = (_cyclicBufferPos << 1);
293 UInt32 len0, len1;
296 UInt32 count = _cutValue;
305 UInt32 delta = _pos - curMatch;
306 UInt32 cyclicPos = ((delta <= _cyclicBufferPos) ?
310 UInt32 pby1 = _bufferOffset + curMatch;
311 UInt32 len = Math.Min(len0, len1);
344 void NormalizeLinks(UInt32[] items, UInt32 numItems, UInt32 subValue)
346 for (UInt32 i = 0; i < numItems; i++)
348 UInt32 value = items[i];
359 UInt32 subValue = _pos - _cyclicBufferSize;
365 public void SetCutValue(UInt32 cutValue) { _cutValue = cutValue; }