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++) in Init()
74 public new UInt32 GetMatchLen(Int32 index, UInt32 distance, UInt32 limit) in GetMatchLen()
77 public new UInt32 GetNumAvailableBytes() { return base.GetNumAvailableBytes(); } in GetNumAvailableBytes()
79 public void Create(UInt32 historySize, UInt32 keepAddBufferBefore, in Create()
80 UInt32 matchMaxLen, UInt32 keepAddBufferAfter) in Create()
86 UInt32 windowReservSize = (historySize + keepAddBufferBefore + in Create()
93 UInt32 cyclicBufferSize = historySize + 1; in Create()
95 _son = new UInt32[(_cyclicBufferSize = cyclicBufferSize) * 2]; in Create()
97 UInt32 hs = kBT2HashSize; in Create()
115 _hash = new UInt32[_hashSizeSum = hs]; in Create()
118 public UInt32 GetMatches(UInt32[] distances) in GetMatches()
120 UInt32 lenLimit; in GetMatches()
133 UInt32 offset = 0; in GetMatches()
134 UInt32 matchMinPos = (_pos > _cyclicBufferSize) ? (_pos - _cyclicBufferSize) : 0; in GetMatches()
135 UInt32 cur = _bufferOffset + _pos; in GetMatches()
136 UInt32 maxLen = kStartMaxLen; // to avoid items for len < hashSize; in GetMatches()
137 UInt32 hashValue, hash2Value = 0, hash3Value = 0; in GetMatches()
141 UInt32 temp = CRC.Table[_bufferBase[cur]] ^ _bufferBase[cur + 1]; in GetMatches()
143 temp ^= ((UInt32)(_bufferBase[cur + 2]) << 8); in GetMatches()
148 hashValue = _bufferBase[cur] ^ ((UInt32)(_bufferBase[cur + 1]) << 8); in GetMatches()
150 UInt32 curMatch = _hash[kFixHashSize + hashValue]; in GetMatches()
153 UInt32 curMatch2 = _hash[hash2Value]; in GetMatches()
154 UInt32 curMatch3 = _hash[kHash3Offset + hash3Value]; in GetMatches()
181 UInt32 ptr0 = (_cyclicBufferPos << 1) + 1; in GetMatches()
182 UInt32 ptr1 = (_cyclicBufferPos << 1); in GetMatches()
184 UInt32 len0, len1; in GetMatches()
200 UInt32 count = _cutValue; in GetMatches()
209 UInt32 delta = _pos - curMatch; in GetMatches()
210 UInt32 cyclicPos = ((delta <= _cyclicBufferPos) ? in GetMatches()
214 UInt32 pby1 = _bufferOffset + curMatch; in GetMatches()
215 UInt32 len = Math.Min(len0, len1); in GetMatches()
252 public void Skip(UInt32 num) in Skip()
256 UInt32 lenLimit; in Skip()
269 UInt32 matchMinPos = (_pos > _cyclicBufferSize) ? (_pos - _cyclicBufferSize) : 0; in Skip()
270 UInt32 cur = _bufferOffset + _pos; in Skip()
272 UInt32 hashValue; in Skip()
276 UInt32 temp = CRC.Table[_bufferBase[cur]] ^ _bufferBase[cur + 1]; in Skip()
277 UInt32 hash2Value = temp & (kHash2Size - 1); in Skip()
279 temp ^= ((UInt32)(_bufferBase[cur + 2]) << 8); in Skip()
280 UInt32 hash3Value = temp & (kHash3Size - 1); in Skip()
285 hashValue = _bufferBase[cur] ^ ((UInt32)(_bufferBase[cur + 1]) << 8); in Skip()
287 UInt32 curMatch = _hash[kFixHashSize + hashValue]; in Skip()
290 UInt32 ptr0 = (_cyclicBufferPos << 1) + 1; in Skip()
291 UInt32 ptr1 = (_cyclicBufferPos << 1); in Skip()
293 UInt32 len0, len1; in Skip()
296 UInt32 count = _cutValue; in Skip()
305 UInt32 delta = _pos - curMatch; in Skip()
306 UInt32 cyclicPos = ((delta <= _cyclicBufferPos) ? in Skip()
310 UInt32 pby1 = _bufferOffset + curMatch; in Skip()
311 UInt32 len = Math.Min(len0, len1); in Skip()
344 void NormalizeLinks(UInt32[] items, UInt32 numItems, UInt32 subValue) in NormalizeLinks()
346 for (UInt32 i = 0; i < numItems; i++) in NormalizeLinks()
348 UInt32 value = items[i]; in NormalizeLinks()
359 UInt32 subValue = _pos - _cyclicBufferSize; in Normalize()
365 public void SetCutValue(UInt32 cutValue) { _cutValue = cutValue; } in SetCutValue()