Lines Matching refs:bytesInBuf
2373 size_t bytesInBuf = 0; in OpenStream2() local
2396 if (bytesInBuf < kBufSize) in OpenStream2()
2398 size_t processedSize = kBufSize - bytesInBuf; in OpenStream2()
2400 UInt64 seekPos = bufPhyPos + bytesInBuf; in OpenStream2()
2401 RINOK(op.stream->Seek(bufPhyPos + bytesInBuf, STREAM_SEEK_SET, NULL)); in OpenStream2()
2402 RINOK(ReadStream(op.stream, byteBuffer + bytesInBuf, &processedSize)); in OpenStream2()
2411 bytesInBuf += processedSize; in OpenStream2()
2417 if (bytesInBuf < posInBuf) in OpenStream2()
2419 UInt64 skipSize = posInBuf - bytesInBuf; in OpenStream2()
2424 memmove(byteBuffer, byteBuffer + bytesInBuf - keepSize, keepSize); in OpenStream2()
2425 bytesInBuf = keepSize; in OpenStream2()
2431 bytesInBuf = 0; in OpenStream2()
2436 if (bytesInBuf - posInBuf < kAfterSize) in OpenStream2()
2440 memmove(byteBuffer, byteBuffer + beg, bytesInBuf - beg); in OpenStream2()
2442 bytesInBuf -= beg; in OpenStream2()
2447 if (bytesInBuf <= (size_t)posInBuf) in OpenStream2()
2466 UInt64 endPos = bufPhyPos + bytesInBuf; in OpenStream2()
2474 size_t availSize = bytesInBuf - (size_t)posInBuf; in OpenStream2()
2584 if (offsetInBuf < bytesInBuf) in OpenStream2()
2586 UInt32 isArcRes = ai.IsArcFunc(byteBuffer + offsetInBuf, bytesInBuf - offsetInBuf); in OpenStream2()