2 writes to _singleCharBuffer
System.IO.Ports (2)
System\IO\Ports\SerialPort.cs (2)
317
_singleCharBuffer
= null;
1079
_singleCharBuffer
??= new char[_maxByteCountForSingleChar];
5 references to _singleCharBuffer
System.IO.Ports (5)
System\IO\Ports\SerialPort.cs (5)
1087
numCharsRead = InternalRead(
_singleCharBuffer
, 0, 1, _readTimeout, true);
1092
numCharsRead = InternalRead(
_singleCharBuffer
, 0, 1, _readTimeout - timeUsed, true);
1102
Debug.Assert((char.IsSurrogate(
_singleCharBuffer
[i])), "number of chars read should be more than one only for surrogate characters!");
1106
currentLine.Append(
_singleCharBuffer
, 0, numCharsRead);
1108
if (lastValueChar == (char)
_singleCharBuffer
[numCharsRead - 1] && (currentLine.Length >= value.Length))