Lines Matching refs:windowPos
876 unsigned int windowPos;
930 windowPos = 0;
1303 windowPos = 0;
1318 while (windowPos < windowSize - 3)
1323 if (windowPos >= 4)
1325 for (unsigned int lookBack=0 ; lookBack<windowPos-4 ; lookBack++)
1328 if (windowHashBuf[lookBack] == windowHashBuf[windowPos])
1331 unsigned int lookAheadMax = windowSize - 4 - windowPos;
1332 if (lookBack + lookAheadMax >= windowPos -4 )
1333 lookAheadMax = windowPos - 4 - lookBack;
1336 unsigned char *wp = &(windowBuf[windowPos+4]);
1347 bestMatchDist = windowPos - lookBack;
1359 fputc(window[windowPos+i], stdout);
1362 fputc(window[windowPos-bestMatchDist+i], stdout);
1366 windowPos += bestMatchLen;
1372 encodeLiteralStatic(windowBuf[windowPos]);
1373 windowPos++;
1377 while (windowPos < windowSize)
1378 encodeLiteralStatic(windowBuf[windowPos++]);
1392 windowPos = 0;
1396 total += windowPos;
1398 if (windowPos > window.size())
1399 windowPos = window.size();
1400 window.erase(window.begin() , window.begin()+windowPos);