1 write to _inBuffer
System.IO.Ports (1)
System\IO\Ports\SerialPort.cs (1)
1338_inBuffer = newBuffer;
30 references to _inBuffer
System.IO.Ports (30)
System\IO\Ports\SerialPort.cs (30)
676Buffer.BlockCopy(_inBuffer, _readPos, buffer, offset, bytesReadToBuffer); 724if (_decoder.GetCharCount(_inBuffer, _readPos, CachedBytesToRead) != 0) 731} while (_decoder.GetCharCount(_inBuffer, beginReadPos, _readPos - beginReadPos) < 1); 735_decoder.GetChars(_inBuffer, beginReadPos, _readPos - beginReadPos, _oneChar, 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 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. 833int charsWeAlreadyHave = _decoder.GetCharCount(_inBuffer, _readPos, CachedBytesToRead); // full chars already in our buffer 870_readLen += _internalSerialStream.Read(_inBuffer, _readLen, maxReadSize); 901_decoder.GetChars(_inBuffer, _readPos, bytesToRead, buffer, offset); 935currentCharsFound = _decoder.GetCharCount(_inBuffer, lastFullCharPos, currentBytesToExamine); 959} while (_decoder.GetCharCount(_inBuffer, lastFullCharPos, foundCharsByteLength) == currentCharsFound); 965_decoder.GetChars(_inBuffer, lastFullCharPos, foundCharsByteLength + 1, buffer, offset + totalCharsFound); 984return _inBuffer[_readPos++]; 1000Buffer.BlockCopy(_inBuffer, _readPos, bytesReceived, 0, CachedBytesToRead); 1031Buffer.BlockCopy(bytesReceived, 0, _inBuffer, 0, bytesReceived.Length); // put it all back! 1047Buffer.BlockCopy(bytesReceived, lastFullCharIndex + 1, _inBuffer, 0, bytesReceived.Length - (lastFullCharIndex + 1)); 1076_readLen += _internalSerialStream.Read(_inBuffer, _readLen, bytesInStream); 1152Buffer.BlockCopy(_inBuffer, _readPos, savBuffer, 0, bytesToSave); 1159Buffer.BlockCopy(readBuffer, 0, _inBuffer, _readLen, readBuffer.Length); 1164Buffer.BlockCopy(savBuffer, 0, _inBuffer, _readLen, bytesToSave); 1306Buffer.BlockCopy(_inBuffer, _readPos, _inBuffer, 0, CachedBytesToRead); 1321if (additionalByteLength + _readLen <= _inBuffer.Length) 1325if (CachedBytesToRead + additionalByteLength <= _inBuffer.Length / 2) 1330int newLength = Math.Max(CachedBytesToRead + additionalByteLength, _inBuffer.Length * 2); 1332Debug.Assert(_inBuffer.Length >= _readLen, "ResizeBuffer - readLen > inBuffer.Length"); 1335Buffer.BlockCopy(_inBuffer, _readPos, newBuffer, 0, CachedBytesToRead);