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

TransportStreamSetLength 方法

When overridden in a derived class, sets the length of the current stream.

Definition

命名空间: TouchSocket.Sockets
程序集: TouchSocket (在 TouchSocket.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
C#
public override void SetLength(
	long value
)

参数

value  Int64
The desired length of the current stream in bytes.

异常

IOExceptionAn I/O error occurs.
NotSupportedExceptionThe stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output.
ObjectDisposedExceptionMethods were called after the stream was closed.

参见