8 writes to bufPos
System (8)
sys\System\IO\compression\FastEncoderWindow.cs (8)
62bufPos = FastEncoderWindowSize; 120bufPos = FastEncoderWindowSize; 154bufPos += (matchLen-1); 159bufPos++; 209bufPos++; 213bufPos++; 260bufPos++; // now points to X+2 277bufPos++; // now bufPos points to X+2
36 references to bufPos
System (36)
sys\System\IO\compression\FastEncoderWindow.cs (36)
39Debug.Assert(bufEnd - bufPos >= 0, "Ending pointer can't be in front of starting pointer!"); 40return bufEnd - bufPos; 48input.StartIndex = bufPos; 49input.Count = bufEnd - bufPos; 63bufEnd = bufPos; 81Debug.Assert(bufPos == 2*FastEncoderWindowSize, "only call this at the end of the window"); 86Array.Copy(window, bufPos - FastEncoderWindowSize, window, 0, FastEncoderWindowSize); 121bufEnd = bufPos; 136hash = HashValue( hash, window[bufPos+2] ); 140lookup[hash & FastEncoderHashMask] = (ushort) bufPos; 141prev[bufPos & FastEncoderWindowMask] = (ushort) search; 153if (bufEnd - bufPos <= matchLen) { 169Debug.Assert(bufPos >= FastEncoderWindowSize && bufPos < (2*FastEncoderWindowSize), "Invalid Buffer Position!"); 173uint hash = HashValue( 0 , window[bufPos]); 174hash = HashValue( hash , window[bufPos + 1]); 180if (bufEnd - bufPos <= 3) { 196if (bufPos + matchLen > bufEnd) 197matchLen = bufEnd - bufPos; 208match.Symbol = window[bufPos]; 231if (bufPos + nextMatchLen > bufEnd) { 232nextMatchLen = bufEnd - bufPos; 244match.Symbol = window[bufPos-1]; 292if (bufPos == 2*FastEncoderWindowSize) { 307Debug.Assert(bufPos >= 0 && bufPos < 2*FastEncoderWindowSize, "Invalid Buffer position!"); 308Debug.Assert(search < bufPos, "Invalid starting search point!"); 309Debug.Assert(RecalculateHash((int)search) == RecalculateHash(bufPos)); 315int earliest = bufPos - FastEncoderWindowSize; 318byte wantChar = window[bufPos]; 321Debug.Assert(RecalculateHash((int)search) == RecalculateHash(bufPos), "Corrupted hash link!"); 330if (window[bufPos+j] != window[search+j]) 338wantChar = window[bufPos+j]; 352matchPos = bufPos - bestMatchPos - 1; // convert absolute to relative position 370while (where != 0 && bufPos - where < FastEncoderWindowSize) { 373if (bufPos - nextWhere >= FastEncoderWindowSize) {