19 writes to readLen
System (19)
sys\system\io\ports\SerialPort.cs (19)
658
readPos =
readLen
= 0;
874
if (readPos == readLen) readPos =
readLen
= 0; // just a check to see if we can reset buffer
884
readLen
= readPos = 0;
949
readLen
+= internalSerialStream.Read(inBuffer, readLen, bytesInStream); // read all immediately avail.
975
inBuffer[
readLen
++] = (byte) nextByte; // we must add to the end of the buffer
984
readLen
= readPos = 0;
1021
readLen
+= internalSerialStream.Read(inBuffer, readLen, bytesInStream); // should execute instantaneously.
1059
readLen
+= internalSerialStream.Read(inBuffer, readLen, maxReadSize);
1092
if (readPos == readLen) readPos =
readLen
= 0;
1161
if (readPos == readLen) readPos =
readLen
= 0;
1204
readLen
= bytesReceived.Length;
1215
readLen
= bytesReceived.Length - (lastFullCharIndex + 1);
1246
readLen
+= internalSerialStream.Read(inBuffer, readLen, bytesInStream);
1291
if (readPos == readLen) readPos =
readLen
= 0;
1318
readLen
= 0;
1323
readLen
+= readBuffer.Length;
1327
readLen
+= bytesToSave;
1454
readLen
= CachedBytesToRead;
1482
readLen
= CachedBytesToRead;
19 references to readLen
System (19)
sys\system\io\ports\SerialPort.cs (19)
189
return
readLen
- readPos;
874
if (readPos ==
readLen
) readPos = readLen = 0; // just a check to see if we can reset buffer
949
readLen += internalSerialStream.Read(inBuffer,
readLen
, bytesInStream); // read all immediately avail.
976
} while (decoder.GetCharCount(inBuffer, readPos,
readLen
- readPos) < 1);
981
decoder.GetChars(inBuffer, readPos,
readLen
- readPos, oneChar, 0);
1021
readLen += internalSerialStream.Read(inBuffer,
readLen
, bytesInStream); // should execute instantaneously.
1059
readLen += internalSerialStream.Read(inBuffer,
readLen
, maxReadSize);
1092
if (readPos ==
readLen
) readPos = readLen = 0;
1111
currentBytesToExamine = Math.Min(count - totalCharsFound,
readLen
- readPos - totalBytesExamined);
1120
Debug.Assert((lastFullCharPos + currentBytesToExamine) <=
readLen
, "We should never be attempting to read more bytes than we have");
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
)
1246
readLen += internalSerialStream.Read(inBuffer,
readLen
, bytesInStream);
1291
if (readPos ==
readLen
) readPos = readLen = 0;
1322
Buffer.BlockCopy(readBuffer, 0, inBuffer,
readLen
, readBuffer.Length);
1326
Buffer.BlockCopy(savBuffer, 0, inBuffer,
readLen
, bytesToSave);
1468
if (additionalByteLength +
readLen
<= inBuffer.Length)
1478
Debug.Assert(inBuffer.Length >=
readLen
, "ResizeBuffer - readLen > inBuffer.Length");