2 writes to _internalSerialStream
System.IO.Ports (2)
System\IO\Ports\SerialPort.cs (2)
601
_internalSerialStream
= null;
631
_internalSerialStream
= new SerialStream(_portName, _baudRate, _parity, _dataBits, _stopBits, _readTimeout,
58 references to _internalSerialStream
System.IO.Ports (58)
System\IO\Ports\SerialPort.cs (58)
84
if (
_internalSerialStream
!= null)
86
_internalSerialStream
.DataReceived += _dataReceivedHandler;
96
if (
_internalSerialStream
!= null)
98
_internalSerialStream
.DataReceived -= _dataReceivedHandler;
113
if (
_internalSerialStream
!= null)
115
_internalSerialStream
.PinChanged += _pinChangedHandler;
125
if (
_internalSerialStream
!= null)
127
_internalSerialStream
.PinChanged -= _pinChangedHandler;
148
return
_internalSerialStream
;
161
_internalSerialStream
.BaudRate = value;
173
return
_internalSerialStream
.BreakState;
180
_internalSerialStream
.BreakState = value;
191
return
_internalSerialStream
.BytesToWrite;
202
return
_internalSerialStream
.BytesToRead + CachedBytesToRead; // count the number of bytes we have in the internal buffer too.
220
return
_internalSerialStream
.CDHolding;
230
return
_internalSerialStream
.CtsHolding;
244
_internalSerialStream
.DataBits = value;
258
_internalSerialStream
.DiscardNull = value;
269
return
_internalSerialStream
.DsrHolding;
278
_dtrEnable =
_internalSerialStream
.DtrEnable;
285
_internalSerialStream
.DtrEnable = value;
333
_internalSerialStream
.Handshake = value;
341
get { return (
_internalSerialStream
!= null &&
_internalSerialStream
.IsOpen); }
370
_internalSerialStream
.Parity = value;
381
_internalSerialStream
.ParityReplace = value;
438
_internalSerialStream
.ReadTimeout = value;
474
_rtsEnable =
_internalSerialStream
.RtsEnable;
481
_internalSerialStream
.RtsEnable = value;
500
_internalSerialStream
.StopBits = value;
536
_internalSerialStream
.WriteTimeout = value;
597
_internalSerialStream
.DataReceived -= _dataReceivedHandler;
598
_internalSerialStream
.PinChanged -= _pinChangedHandler;
599
_internalSerialStream
.Flush();
600
_internalSerialStream
.Close();
611
_internalSerialStream
.DiscardInBuffer();
619
_internalSerialStream
.DiscardOutBuffer();
634
_internalSerialStream
.SetBufferSizes(_readBufferSize, _writeBufferSize);
636
_internalSerialStream
.ErrorReceived += new SerialErrorReceivedEventHandler(CatchErrorEvents);
640
_internalSerialStream
.PinChanged += _pinChangedHandler;
645
_internalSerialStream
.DataReceived += _dataReceivedHandler;
696
bytesReadToBuffer +=
_internalSerialStream
.Read(buffer, offset + bytesReadToBuffer, bytesLeftToRead);
754
int bytesInStream =
_internalSerialStream
.BytesToRead;
758
_readLen +=
_internalSerialStream
.Read(_inBuffer, _readLen, bytesInStream); // read all immediately avail.
775
nextByte =
_internalSerialStream
.ReadByte(InfiniteTimeout);
778
nextByte =
_internalSerialStream
.ReadByte(timeout - timeUsed);
829
int bytesInStream =
_internalSerialStream
.BytesToRead;
831
_readLen +=
_internalSerialStream
.Read(_inBuffer, _readLen, bytesInStream); // should execute instantaneously.
870
_readLen +=
_internalSerialStream
.Read(_inBuffer, _readLen, maxReadSize);
987
return
_internalSerialStream
.ReadByte(); // otherwise, ask the stream.
1004
_internalSerialStream
.ReadExactly(bytesReceived, CachedBytesToRead, bytesReceived.Length - CachedBytesToRead); // get everything
1073
int bytesInStream =
_internalSerialStream
.BytesToRead;
1076
_readLen +=
_internalSerialStream
.Read(_inBuffer, _readLen, bytesInStream);
1185
_internalSerialStream
.Write(bytesToWrite, 0, bytesToWrite.Length, _writeTimeout);
1224
_internalSerialStream
.Write(buffer, offset, count, _writeTimeout);
1239
SerialStream stream =
_internalSerialStream
;
1254
SerialStream stream =
_internalSerialStream
;
1269
SerialStream stream =
_internalSerialStream
;