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