19 writes to _readLen
System.IO.Ports (19)
System\IO\Ports\SerialPort.cs (19)
612
_readPos =
_readLen
= 0;
680
if (_readPos == _readLen) _readPos =
_readLen
= 0; // just a check to see if we can reset buffer
690
_readLen
= _readPos = 0;
758
_readLen
+= _internalSerialStream.Read(_inBuffer, _readLen, bytesInStream); // read all immediately avail.
785
_inBuffer[
_readLen
++] = (byte)nextByte; // we must add to the end of the buffer
794
_readLen
= _readPos = 0;
831
_readLen
+= _internalSerialStream.Read(_inBuffer, _readLen, bytesInStream); // should execute instantaneously.
870
_readLen
+= _internalSerialStream.Read(_inBuffer, _readLen, maxReadSize);
904
if (_readPos == _readLen) _readPos =
_readLen
= 0;
974
if (_readPos == _readLen) _readPos =
_readLen
= 0;
1034
_readLen
= bytesReceived.Length;
1045
_readLen
= bytesReceived.Length - (lastFullCharIndex + 1);
1076
_readLen
+= _internalSerialStream.Read(_inBuffer, _readLen, bytesInStream);
1126
if (_readPos == _readLen) _readPos =
_readLen
= 0;
1155
_readLen
= 0;
1160
_readLen
+= readBuffer.Length;
1165
_readLen
+= bytesToSave;
1307
_readLen
= CachedBytesToRead;
1336
_readLen
= CachedBytesToRead;
19 references to _readLen
System.IO.Ports (19)
System\IO\Ports\SerialPort.cs (19)
210
return
_readLen
- _readPos;
680
if (_readPos ==
_readLen
) _readPos = _readLen = 0; // just a check to see if we can reset buffer
758
_readLen += _internalSerialStream.Read(_inBuffer,
_readLen
, bytesInStream); // read all immediately avail.
786
} while (_decoder.GetCharCount(_inBuffer, _readPos,
_readLen
- _readPos) < 1);
791
_decoder.GetChars(_inBuffer, _readPos,
_readLen
- _readPos, _oneChar, 0);
831
_readLen += _internalSerialStream.Read(_inBuffer,
_readLen
, bytesInStream); // should execute instantaneously.
870
_readLen += _internalSerialStream.Read(_inBuffer,
_readLen
, maxReadSize);
904
if (_readPos ==
_readLen
) _readPos = _readLen = 0;
923
currentBytesToExamine = Math.Min(count - totalCharsFound,
_readLen
- _readPos - totalBytesExamined);
933
Debug.Assert((lastFullCharPos + currentBytesToExamine) <=
_readLen
, "We should never be attempting to read more bytes than we have");
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
)
1076
_readLen += _internalSerialStream.Read(_inBuffer,
_readLen
, bytesInStream);
1126
if (_readPos ==
_readLen
) _readPos = _readLen = 0;
1159
Buffer.BlockCopy(readBuffer, 0, _inBuffer,
_readLen
, readBuffer.Length);
1164
Buffer.BlockCopy(savBuffer, 0, _inBuffer,
_readLen
, bytesToSave);
1321
if (additionalByteLength +
_readLen
<= _inBuffer.Length)
1332
Debug.Assert(_inBuffer.Length >=
_readLen
, "ResizeBuffer - readLen > inBuffer.Length");