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)
676
Buffer.BlockCopy(
_inBuffer
, _readPos, buffer, offset, bytesReadToBuffer);
724
if (_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.
833
int 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);
935
currentCharsFound = _decoder.GetCharCount(
_inBuffer
, lastFullCharPos, currentBytesToExamine);
959
} while (_decoder.GetCharCount(
_inBuffer
, lastFullCharPos, foundCharsByteLength) == currentCharsFound);
965
_decoder.GetChars(
_inBuffer
, lastFullCharPos, foundCharsByteLength + 1, buffer, offset + totalCharsFound);
984
return
_inBuffer
[_readPos++];
1000
Buffer.BlockCopy(
_inBuffer
, _readPos, bytesReceived, 0, CachedBytesToRead);
1031
Buffer.BlockCopy(bytesReceived, 0,
_inBuffer
, 0, bytesReceived.Length); // put it all back!
1047
Buffer.BlockCopy(bytesReceived, lastFullCharIndex + 1,
_inBuffer
, 0, bytesReceived.Length - (lastFullCharIndex + 1));
1076
_readLen += _internalSerialStream.Read(
_inBuffer
, _readLen, bytesInStream);
1152
Buffer.BlockCopy(
_inBuffer
, _readPos, savBuffer, 0, bytesToSave);
1159
Buffer.BlockCopy(readBuffer, 0,
_inBuffer
, _readLen, readBuffer.Length);
1164
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);