18 writes to readPos
System (18)
sys\system\io\ports\SerialPort.cs (18)
658
readPos
= readLen = 0;
872
readPos
+= bytesReadToBuffer;
874
if (readPos == readLen)
readPos
= readLen = 0; // just a check to see if we can reset buffer
884
readLen =
readPos
= 0;
924
readPos
++;
933
readPos
= beginReadPos;
984
readLen =
readPos
= 0;
1091
readPos
+= bytesToRead;
1092
if (readPos == readLen)
readPos
= readLen = 0;
1159
readPos
= lastFullCharPos;
1161
if (readPos == readLen)
readPos
= readLen = 0;
1171
return inBuffer[
readPos
++];
1203
readPos
= 0;
1214
readPos
= 0;
1291
if (readPos == readLen)
readPos
= readLen = 0;
1317
readPos
= 0;
1455
readPos
= 0;
1483
readPos
= 0;
26 references to readPos
System (26)
sys\system\io\ports\SerialPort.cs (26)
189
return readLen -
readPos
;
871
Buffer.BlockCopy(inBuffer,
readPos
, buffer, offset, bytesReadToBuffer);
874
if (
readPos
== readLen) readPos = readLen = 0; // just a check to see if we can reset buffer
918
if (decoder.GetCharCount(inBuffer,
readPos
, CachedBytesToRead) != 0)
920
int beginReadPos =
readPos
;
925
} while (decoder.GetCharCount(inBuffer, beginReadPos,
readPos
- beginReadPos) < 1);
928
decoder.GetChars(inBuffer, beginReadPos,
readPos
- beginReadPos, oneChar, 0);
976
} while (decoder.GetCharCount(inBuffer,
readPos
, readLen -
readPos
) < 1);
981
decoder.GetChars(inBuffer,
readPos
, readLen -
readPos
, oneChar, 0);
1023
int charsWeAlreadyHave = decoder.GetCharCount(inBuffer,
readPos
, CachedBytesToRead); // full chars already in our buffer
1089
decoder.GetChars(inBuffer,
readPos
, bytesToRead, buffer, offset);
1092
if (
readPos
== readLen) readPos = readLen = 0;
1108
int lastFullCharPos =
readPos
; // first index AFTER last full char read, capped at ReadLen.
1111
currentBytesToExamine = Math.Min(count - totalCharsFound, readLen -
readPos
- totalBytesExamined);
1117
currentBytesToExamine =
readPos
+ totalBytesExamined - lastFullCharPos;
1161
if (
readPos
== readLen) readPos = readLen = 0;
1170
if (readLen !=
readPos
) // stuff left in buffer, so we can read from it
1184
if (
readPos
< readLen)
1186
Buffer.BlockCopy(inBuffer,
readPos
, bytesReceived, 0, CachedBytesToRead);
1247
int beginReadPos =
readPos
;
1291
if (
readPos
== readLen) readPos = readLen = 0;
1315
Buffer.BlockCopy(inBuffer,
readPos
, savBuffer, 0, bytesToSave);
1453
Buffer.BlockCopy(inBuffer,
readPos
, inBuffer, 0, CachedBytesToRead);
1481
Buffer.BlockCopy(inBuffer,
readPos
, newBuffer, 0, CachedBytesToRead);