1 write to inBuffer
System (1)
sys\system\io\ports\SerialPort.cs (1)
1484
inBuffer
= newBuffer;
30 references to inBuffer
System (30)
sys\system\io\ports\SerialPort.cs (30)
871
Buffer.BlockCopy(
inBuffer
, readPos, buffer, offset, bytesReadToBuffer);
918
if (decoder.GetCharCount(
inBuffer
, readPos, CachedBytesToRead) != 0)
925
} while (decoder.GetCharCount(
inBuffer
, beginReadPos, readPos - beginReadPos) < 1);
928
decoder.GetChars(
inBuffer
, beginReadPos, readPos - beginReadPos, oneChar, 0);
949
readLen += internalSerialStream.Read(
inBuffer
, readLen, bytesInStream); // read all immediately avail.
975
inBuffer
[readLen++] = (byte) nextByte; // we must add to the end of the buffer
976
} while (decoder.GetCharCount(
inBuffer
, readPos, readLen - readPos) < 1);
981
decoder.GetChars(
inBuffer
, readPos, readLen - readPos, oneChar, 0);
1021
readLen += internalSerialStream.Read(
inBuffer
, readLen, bytesInStream); // should execute instantaneously.
1023
int charsWeAlreadyHave = decoder.GetCharCount(
inBuffer
, readPos, CachedBytesToRead); // full chars already in our buffer
1059
readLen += internalSerialStream.Read(
inBuffer
, readLen, maxReadSize);
1089
decoder.GetChars(
inBuffer
, readPos, bytesToRead, buffer, offset);
1122
currentCharsFound = decoder.GetCharCount(
inBuffer
, lastFullCharPos, currentBytesToExamine);
1146
} while (decoder.GetCharCount(
inBuffer
, lastFullCharPos, foundCharsByteLength) == currentCharsFound);
1152
decoder.GetChars(
inBuffer
, lastFullCharPos, foundCharsByteLength + 1, buffer, offset + totalCharsFound);
1171
return
inBuffer
[readPos++];
1186
Buffer.BlockCopy(
inBuffer
, readPos, bytesReceived, 0, CachedBytesToRead);
1201
Buffer.BlockCopy(bytesReceived, 0,
inBuffer
, 0, bytesReceived.Length); // put it all back!
1217
Buffer.BlockCopy(bytesReceived, lastFullCharIndex + 1,
inBuffer
, 0, bytesReceived.Length - (lastFullCharIndex + 1));
1246
readLen += internalSerialStream.Read(
inBuffer
, readLen, bytesInStream);
1315
Buffer.BlockCopy(
inBuffer
, readPos, savBuffer, 0, bytesToSave);
1322
Buffer.BlockCopy(readBuffer, 0,
inBuffer
, readLen, readBuffer.Length);
1326
Buffer.BlockCopy(savBuffer, 0,
inBuffer
, readLen, bytesToSave);
1453
Buffer.BlockCopy(
inBuffer
, readPos,
inBuffer
, 0, CachedBytesToRead);
1468
if (additionalByteLength + readLen <=
inBuffer
.Length)
1472
if (CachedBytesToRead + additionalByteLength <=
inBuffer
.Length / 2)
1476
int newLength = Math.Max(CachedBytesToRead + additionalByteLength,
inBuffer
.Length * 2);
1478
Debug.Assert(
inBuffer
.Length >= readLen, "ResizeBuffer - readLen > inBuffer.Length");
1481
Buffer.BlockCopy(
inBuffer
, readPos, newBuffer, 0, CachedBytesToRead);