18 writes to _readPos
System.IO.Ports (18)
System\IO\Ports\SerialPort.cs (18)
614
_readPos
= _readLen = 0;
679
_readPos
+= bytesReadToBuffer;
682
if (_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;
906
if (_readPos == _readLen)
_readPos
= _readLen = 0;
974
_readPos
= lastFullCharPos;
976
if (_readPos == _readLen)
_readPos
= _readLen = 0;
986
return _inBuffer[
_readPos
++];
1035
_readPos
= 0;
1046
_readPos
= 0;
1128
if (_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)
211
return _readLen -
_readPos
;
678
Buffer.BlockCopy(_inBuffer,
_readPos
, buffer, offset, bytesReadToBuffer);
682
if (
_readPos
== _readLen) _readPos = _readLen = 0; // just a check to see if we can reset buffer
726
if (_decoder.GetCharCount(_inBuffer,
_readPos
, CachedBytesToRead) != 0)
728
int 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);
835
int charsWeAlreadyHave = _decoder.GetCharCount(_inBuffer,
_readPos
, CachedBytesToRead); // full chars already in our buffer
903
_decoder.GetChars(_inBuffer,
_readPos
, bytesToRead, buffer, offset);
906
if (
_readPos
== _readLen) _readPos = _readLen = 0;
922
int lastFullCharPos =
_readPos
; // first index AFTER last full char read, capped at ReadLen.
925
currentBytesToExamine = Math.Min(count - totalCharsFound, _readLen -
_readPos
- totalBytesExamined);
932
currentBytesToExamine =
_readPos
+ totalBytesExamined - lastFullCharPos;
976
if (
_readPos
== _readLen) _readPos = _readLen = 0;
985
if (_readLen !=
_readPos
) // stuff left in buffer, so we can read from it
999
if (
_readPos
< _readLen)
1002
Buffer.BlockCopy(_inBuffer,
_readPos
, bytesReceived, 0, CachedBytesToRead);
1128
if (
_readPos
== _readLen) _readPos = _readLen = 0;
1154
Buffer.BlockCopy(_inBuffer,
_readPos
, savBuffer, 0, bytesToSave);
1306
Buffer.BlockCopy(_inBuffer,
_readPos
, _inBuffer, 0, CachedBytesToRead);
1335
Buffer.BlockCopy(_inBuffer,
_readPos
, newBuffer, 0, CachedBytesToRead);