18 writes to _readPos
System.IO.Ports (18)
System\IO\Ports\SerialPort.cs (18)
614_readPos = _readLen = 0; 679_readPos += bytesReadToBuffer; 682if (_readPos == _readLen) _readPos = _readLen = 0; // just a check to see if we can reset buffer 692_readLen = _readPos = 0; 732_readPos++; 743_readPos = beginReadPos; 796_readLen = _readPos = 0; 905_readPos += bytesToRead; 906if (_readPos == _readLen) _readPos = _readLen = 0; 974_readPos = lastFullCharPos; 976if (_readPos == _readLen) _readPos = _readLen = 0; 986return _inBuffer[_readPos++]; 1035_readPos = 0; 1046_readPos = 0; 1128if (_readPos == _readLen) _readPos = _readLen = 0; 1156_readPos = 0; 1308_readPos = 0; 1337_readPos = 0;
25 references to _readPos
System.IO.Ports (25)
System\IO\Ports\SerialPort.cs (25)
211return _readLen - _readPos; 678Buffer.BlockCopy(_inBuffer, _readPos, buffer, offset, bytesReadToBuffer); 682if (_readPos == _readLen) _readPos = _readLen = 0; // just a check to see if we can reset buffer 726if (_decoder.GetCharCount(_inBuffer, _readPos, CachedBytesToRead) != 0) 728int beginReadPos = _readPos; 733} while (_decoder.GetCharCount(_inBuffer, beginReadPos, _readPos - beginReadPos) < 1); 737_decoder.GetChars(_inBuffer, beginReadPos, _readPos - beginReadPos, _oneChar, 0); 788} while (_decoder.GetCharCount(_inBuffer, _readPos, _readLen - _readPos) < 1); 793_decoder.GetChars(_inBuffer, _readPos, _readLen - _readPos, _oneChar, 0); 835int charsWeAlreadyHave = _decoder.GetCharCount(_inBuffer, _readPos, CachedBytesToRead); // full chars already in our buffer 903_decoder.GetChars(_inBuffer, _readPos, bytesToRead, buffer, offset); 906if (_readPos == _readLen) _readPos = _readLen = 0; 922int lastFullCharPos = _readPos; // first index AFTER last full char read, capped at ReadLen. 925currentBytesToExamine = Math.Min(count - totalCharsFound, _readLen - _readPos - totalBytesExamined); 932currentBytesToExamine = _readPos + totalBytesExamined - lastFullCharPos; 976if (_readPos == _readLen) _readPos = _readLen = 0; 985if (_readLen != _readPos) // stuff left in buffer, so we can read from it 999if (_readPos < _readLen) 1002Buffer.BlockCopy(_inBuffer, _readPos, bytesReceived, 0, CachedBytesToRead); 1128if (_readPos == _readLen) _readPos = _readLen = 0; 1154Buffer.BlockCopy(_inBuffer, _readPos, savBuffer, 0, bytesToSave); 1306Buffer.BlockCopy(_inBuffer, _readPos, _inBuffer, 0, CachedBytesToRead); 1335Buffer.BlockCopy(_inBuffer, _readPos, newBuffer, 0, CachedBytesToRead);