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)
678Buffer.BlockCopy(_inBuffer, _readPos, buffer, offset, bytesReadToBuffer); 726if (_decoder.GetCharCount(_inBuffer, _readPos, CachedBytesToRead) != 0) 733} while (_decoder.GetCharCount(_inBuffer, beginReadPos, _readPos - beginReadPos) < 1); 737_decoder.GetChars(_inBuffer, beginReadPos, _readPos - beginReadPos, _oneChar, 0); 760_readLen += _internalSerialStream.Read(_inBuffer, _readLen, bytesInStream); // read all immediately avail. 787_inBuffer[_readLen++] = (byte)nextByte; // we must add to the end of the buffer 788} while (_decoder.GetCharCount(_inBuffer, _readPos, _readLen - _readPos) < 1); 793_decoder.GetChars(_inBuffer, _readPos, _readLen - _readPos, _oneChar, 0); 833_readLen += _internalSerialStream.Read(_inBuffer, _readLen, bytesInStream); // should execute instantaneously. 835int charsWeAlreadyHave = _decoder.GetCharCount(_inBuffer, _readPos, CachedBytesToRead); // full chars already in our buffer 872_readLen += _internalSerialStream.Read(_inBuffer, _readLen, maxReadSize); 903_decoder.GetChars(_inBuffer, _readPos, bytesToRead, buffer, offset); 937currentCharsFound = _decoder.GetCharCount(_inBuffer, lastFullCharPos, currentBytesToExamine); 961} while (_decoder.GetCharCount(_inBuffer, lastFullCharPos, foundCharsByteLength) == currentCharsFound); 967_decoder.GetChars(_inBuffer, lastFullCharPos, foundCharsByteLength + 1, buffer, offset + totalCharsFound); 986return _inBuffer[_readPos++]; 1002Buffer.BlockCopy(_inBuffer, _readPos, bytesReceived, 0, CachedBytesToRead); 1033Buffer.BlockCopy(bytesReceived, 0, _inBuffer, 0, bytesReceived.Length); // put it all back! 1049Buffer.BlockCopy(bytesReceived, lastFullCharIndex + 1, _inBuffer, 0, bytesReceived.Length - (lastFullCharIndex + 1)); 1078_readLen += _internalSerialStream.Read(_inBuffer, _readLen, bytesInStream); 1154Buffer.BlockCopy(_inBuffer, _readPos, savBuffer, 0, bytesToSave); 1161Buffer.BlockCopy(readBuffer, 0, _inBuffer, _readLen, readBuffer.Length); 1166Buffer.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);