18 writes to _readPos
System.IO.Ports (18)
System\IO\Ports\SerialPort.cs (18)
612_readPos = _readLen = 0; 677_readPos += bytesReadToBuffer; 680if (_readPos == _readLen) _readPos = _readLen = 0; // just a check to see if we can reset buffer 690_readLen = _readPos = 0; 730_readPos++; 741_readPos = beginReadPos; 794_readLen = _readPos = 0; 903_readPos += bytesToRead; 904if (_readPos == _readLen) _readPos = _readLen = 0; 972_readPos = lastFullCharPos; 974if (_readPos == _readLen) _readPos = _readLen = 0; 984return _inBuffer[_readPos++]; 1033_readPos = 0; 1044_readPos = 0; 1126if (_readPos == _readLen) _readPos = _readLen = 0; 1154_readPos = 0; 1308_readPos = 0; 1337_readPos = 0;
25 references to _readPos
System.IO.Ports (25)
System\IO\Ports\SerialPort.cs (25)
210return _readLen - _readPos; 676Buffer.BlockCopy(_inBuffer, _readPos, buffer, offset, bytesReadToBuffer); 680if (_readPos == _readLen) _readPos = _readLen = 0; // just a check to see if we can reset buffer 724if (_decoder.GetCharCount(_inBuffer, _readPos, CachedBytesToRead) != 0) 726int beginReadPos = _readPos; 731} while (_decoder.GetCharCount(_inBuffer, beginReadPos, _readPos - beginReadPos) < 1); 735_decoder.GetChars(_inBuffer, beginReadPos, _readPos - beginReadPos, _oneChar, 0); 786} while (_decoder.GetCharCount(_inBuffer, _readPos, _readLen - _readPos) < 1); 791_decoder.GetChars(_inBuffer, _readPos, _readLen - _readPos, _oneChar, 0); 833int charsWeAlreadyHave = _decoder.GetCharCount(_inBuffer, _readPos, CachedBytesToRead); // full chars already in our buffer 901_decoder.GetChars(_inBuffer, _readPos, bytesToRead, buffer, offset); 904if (_readPos == _readLen) _readPos = _readLen = 0; 920int lastFullCharPos = _readPos; // first index AFTER last full char read, capped at ReadLen. 923currentBytesToExamine = Math.Min(count - totalCharsFound, _readLen - _readPos - totalBytesExamined); 930currentBytesToExamine = _readPos + totalBytesExamined - lastFullCharPos; 974if (_readPos == _readLen) _readPos = _readLen = 0; 983if (_readLen != _readPos) // stuff left in buffer, so we can read from it 997if (_readPos < _readLen) 1000Buffer.BlockCopy(_inBuffer, _readPos, bytesReceived, 0, CachedBytesToRead); 1126if (_readPos == _readLen) _readPos = _readLen = 0; 1152Buffer.BlockCopy(_inBuffer, _readPos, savBuffer, 0, bytesToSave); 1306Buffer.BlockCopy(_inBuffer, _readPos, _inBuffer, 0, CachedBytesToRead); 1335Buffer.BlockCopy(_inBuffer, _readPos, newBuffer, 0, CachedBytesToRead);