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)
678
Buffer.BlockCopy(
_inBuffer
, _readPos, buffer, offset, bytesReadToBuffer);
726
if (_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.
835
int 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);
937
currentCharsFound = _decoder.GetCharCount(
_inBuffer
, lastFullCharPos, currentBytesToExamine);
961
} while (_decoder.GetCharCount(
_inBuffer
, lastFullCharPos, foundCharsByteLength) == currentCharsFound);
967
_decoder.GetChars(
_inBuffer
, lastFullCharPos, foundCharsByteLength + 1, buffer, offset + totalCharsFound);
986
return
_inBuffer
[_readPos++];
1002
Buffer.BlockCopy(
_inBuffer
, _readPos, bytesReceived, 0, CachedBytesToRead);
1033
Buffer.BlockCopy(bytesReceived, 0,
_inBuffer
, 0, bytesReceived.Length); // put it all back!
1049
Buffer.BlockCopy(bytesReceived, lastFullCharIndex + 1,
_inBuffer
, 0, bytesReceived.Length - (lastFullCharIndex + 1));
1078
_readLen += _internalSerialStream.Read(
_inBuffer
, _readLen, bytesInStream);
1154
Buffer.BlockCopy(
_inBuffer
, _readPos, savBuffer, 0, bytesToSave);
1161
Buffer.BlockCopy(readBuffer, 0,
_inBuffer
, _readLen, readBuffer.Length);
1166
Buffer.BlockCopy(savBuffer, 0,
_inBuffer
, _readLen, bytesToSave);
1306
Buffer.BlockCopy(
_inBuffer
, _readPos,
_inBuffer
, 0, CachedBytesToRead);
1321
if (additionalByteLength + _readLen <=
_inBuffer
.Length)
1325
if (CachedBytesToRead + additionalByteLength <=
_inBuffer
.Length / 2)
1330
int newLength = Math.Max(CachedBytesToRead + additionalByteLength,
_inBuffer
.Length * 2);
1332
Debug.Assert(
_inBuffer
.Length >= _readLen, "ResizeBuffer - readLen > inBuffer.Length");
1335
Buffer.BlockCopy(
_inBuffer
, _readPos, newBuffer, 0, CachedBytesToRead);