一款简单易用的基础网络通讯组件库。

TransportStreamReadByte 方法

Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.

Definition

命名空间: TouchSocket.Sockets
程序集: TouchSocket (在 TouchSocket.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
C#
public override int ReadByte()

返回值

Int32
The unsigned byte cast to an Int32, or -1 if at the end of the stream.

异常

NotSupportedExceptionThe stream does not support reading.
ObjectDisposedExceptionMethods were called after the stream was closed.

参见