19 writes to _readLen
System.IO.Ports (19)
System\IO\Ports\SerialPort.cs (19)
612_readPos = _readLen = 0; 680if (_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); 904if (_readPos == _readLen) _readPos = _readLen = 0; 974if (_readPos == _readLen) _readPos = _readLen = 0; 1034_readLen = bytesReceived.Length; 1045_readLen = bytesReceived.Length - (lastFullCharIndex + 1); 1076_readLen += _internalSerialStream.Read(_inBuffer, _readLen, bytesInStream); 1126if (_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)
210return _readLen - _readPos; 680if (_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); 904if (_readPos == _readLen) _readPos = _readLen = 0; 923currentBytesToExamine = Math.Min(count - totalCharsFound, _readLen - _readPos - totalBytesExamined); 933Debug.Assert((lastFullCharPos + currentBytesToExamine) <= _readLen, "We should never be attempting to read more bytes than we have"); 974if (_readPos == _readLen) _readPos = _readLen = 0; 983if (_readLen != _readPos) // stuff left in buffer, so we can read from it 997if (_readPos < _readLen) 1076_readLen += _internalSerialStream.Read(_inBuffer, _readLen, bytesInStream); 1126if (_readPos == _readLen) _readPos = _readLen = 0; 1159Buffer.BlockCopy(readBuffer, 0, _inBuffer, _readLen, readBuffer.Length); 1164Buffer.BlockCopy(savBuffer, 0, _inBuffer, _readLen, bytesToSave); 1321if (additionalByteLength + _readLen <= _inBuffer.Length) 1332Debug.Assert(_inBuffer.Length >= _readLen, "ResizeBuffer - readLen > inBuffer.Length");