18 writes to _readPos
System.IO.Ports (18)
System\IO\Ports\SerialPort.cs (18)
579_readPos = _readLen = 0; 640_readPos += bytesReadToBuffer; 643if (_readPos == _readLen) _readPos = _readLen = 0; // just a check to see if we can reset buffer 653_readLen = _readPos = 0; 693_readPos++; 704_readPos = beginReadPos; 757_readLen = _readPos = 0; 866_readPos += bytesToRead; 867if (_readPos == _readLen) _readPos = _readLen = 0; 935_readPos = lastFullCharPos; 937if (_readPos == _readLen) _readPos = _readLen = 0; 947return _inBuffer[_readPos++]; 996_readPos = 0; 1007_readPos = 0; 1089if (_readPos == _readLen) _readPos = _readLen = 0; 1117_readPos = 0; 1271_readPos = 0; 1300_readPos = 0;
25 references to _readPos
System.IO.Ports (25)
System\IO\Ports\SerialPort.cs (25)
179return _readLen - _readPos; 639Buffer.BlockCopy(_inBuffer, _readPos, buffer, offset, bytesReadToBuffer); 643if (_readPos == _readLen) _readPos = _readLen = 0; // just a check to see if we can reset buffer 687if (_decoder.GetCharCount(_inBuffer, _readPos, CachedBytesToRead) != 0) 689int beginReadPos = _readPos; 694} while (_decoder.GetCharCount(_inBuffer, beginReadPos, _readPos - beginReadPos) < 1); 698_decoder.GetChars(_inBuffer, beginReadPos, _readPos - beginReadPos, _oneChar, 0); 749} while (_decoder.GetCharCount(_inBuffer, _readPos, _readLen - _readPos) < 1); 754_decoder.GetChars(_inBuffer, _readPos, _readLen - _readPos, _oneChar, 0); 796int charsWeAlreadyHave = _decoder.GetCharCount(_inBuffer, _readPos, CachedBytesToRead); // full chars already in our buffer 864_decoder.GetChars(_inBuffer, _readPos, bytesToRead, buffer, offset); 867if (_readPos == _readLen) _readPos = _readLen = 0; 883int lastFullCharPos = _readPos; // first index AFTER last full char read, capped at ReadLen. 886currentBytesToExamine = Math.Min(count - totalCharsFound, _readLen - _readPos - totalBytesExamined); 893currentBytesToExamine = _readPos + totalBytesExamined - lastFullCharPos; 937if (_readPos == _readLen) _readPos = _readLen = 0; 946if (_readLen != _readPos) // stuff left in buffer, so we can read from it 960if (_readPos < _readLen) 963Buffer.BlockCopy(_inBuffer, _readPos, bytesReceived, 0, CachedBytesToRead); 1089if (_readPos == _readLen) _readPos = _readLen = 0; 1115Buffer.BlockCopy(_inBuffer, _readPos, savBuffer, 0, bytesToSave); 1269Buffer.BlockCopy(_inBuffer, _readPos, _inBuffer, 0, CachedBytesToRead); 1298Buffer.BlockCopy(_inBuffer, _readPos, newBuffer, 0, CachedBytesToRead);