18 writes to _readPos
System.IO.Ports (18)
System\IO\Ports\SerialPort.cs (18)
579
_readPos
= _readLen = 0;
640
_readPos
+= bytesReadToBuffer;
643
if (_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;
867
if (_readPos == _readLen)
_readPos
= _readLen = 0;
935
_readPos
= lastFullCharPos;
937
if (_readPos == _readLen)
_readPos
= _readLen = 0;
947
return _inBuffer[
_readPos
++];
996
_readPos
= 0;
1007
_readPos
= 0;
1089
if (_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)
179
return _readLen -
_readPos
;
639
Buffer.BlockCopy(_inBuffer,
_readPos
, buffer, offset, bytesReadToBuffer);
643
if (
_readPos
== _readLen) _readPos = _readLen = 0; // just a check to see if we can reset buffer
687
if (_decoder.GetCharCount(_inBuffer,
_readPos
, CachedBytesToRead) != 0)
689
int 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);
796
int charsWeAlreadyHave = _decoder.GetCharCount(_inBuffer,
_readPos
, CachedBytesToRead); // full chars already in our buffer
864
_decoder.GetChars(_inBuffer,
_readPos
, bytesToRead, buffer, offset);
867
if (
_readPos
== _readLen) _readPos = _readLen = 0;
883
int lastFullCharPos =
_readPos
; // first index AFTER last full char read, capped at ReadLen.
886
currentBytesToExamine = Math.Min(count - totalCharsFound, _readLen -
_readPos
- totalBytesExamined);
893
currentBytesToExamine =
_readPos
+ totalBytesExamined - lastFullCharPos;
937
if (
_readPos
== _readLen) _readPos = _readLen = 0;
946
if (_readLen !=
_readPos
) // stuff left in buffer, so we can read from it
960
if (
_readPos
< _readLen)
963
Buffer.BlockCopy(_inBuffer,
_readPos
, bytesReceived, 0, CachedBytesToRead);
1089
if (
_readPos
== _readLen) _readPos = _readLen = 0;
1115
Buffer.BlockCopy(_inBuffer,
_readPos
, savBuffer, 0, bytesToSave);
1269
Buffer.BlockCopy(_inBuffer,
_readPos
, _inBuffer, 0, CachedBytesToRead);
1298
Buffer.BlockCopy(_inBuffer,
_readPos
, newBuffer, 0, CachedBytesToRead);