18 writes to _readPos
System.IO.Ports (18)
System\IO\Ports\SerialPort.cs (18)
612
_readPos
= _readLen = 0;
677
_readPos
+= bytesReadToBuffer;
680
if (_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;
904
if (_readPos == _readLen)
_readPos
= _readLen = 0;
972
_readPos
= lastFullCharPos;
974
if (_readPos == _readLen)
_readPos
= _readLen = 0;
984
return _inBuffer[
_readPos
++];
1033
_readPos
= 0;
1044
_readPos
= 0;
1126
if (_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)
210
return _readLen -
_readPos
;
676
Buffer.BlockCopy(_inBuffer,
_readPos
, buffer, offset, bytesReadToBuffer);
680
if (
_readPos
== _readLen) _readPos = _readLen = 0; // just a check to see if we can reset buffer
724
if (_decoder.GetCharCount(_inBuffer,
_readPos
, CachedBytesToRead) != 0)
726
int 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);
833
int charsWeAlreadyHave = _decoder.GetCharCount(_inBuffer,
_readPos
, CachedBytesToRead); // full chars already in our buffer
901
_decoder.GetChars(_inBuffer,
_readPos
, bytesToRead, buffer, offset);
904
if (
_readPos
== _readLen) _readPos = _readLen = 0;
920
int lastFullCharPos =
_readPos
; // first index AFTER last full char read, capped at ReadLen.
923
currentBytesToExamine = Math.Min(count - totalCharsFound, _readLen -
_readPos
- totalBytesExamined);
930
currentBytesToExamine =
_readPos
+ totalBytesExamined - lastFullCharPos;
974
if (
_readPos
== _readLen) _readPos = _readLen = 0;
983
if (_readLen !=
_readPos
) // stuff left in buffer, so we can read from it
997
if (
_readPos
< _readLen)
1000
Buffer.BlockCopy(_inBuffer,
_readPos
, bytesReceived, 0, CachedBytesToRead);
1126
if (
_readPos
== _readLen) _readPos = _readLen = 0;
1152
Buffer.BlockCopy(_inBuffer,
_readPos
, savBuffer, 0, bytesToSave);
1306
Buffer.BlockCopy(_inBuffer,
_readPos
, _inBuffer, 0, CachedBytesToRead);
1335
Buffer.BlockCopy(_inBuffer,
_readPos
, newBuffer, 0, CachedBytesToRead);