点击或拖拽改变大小

NetworkBaseReadStreamAsync 方法

读取流中的数据到缓存区,读取的长度需要按照实际的情况来判断
Read the data in the stream to the buffer area. The length of the read needs to be determined according to the actual situation.

命名空间:  HslCommunication.Core.Net
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
protected Task<OperateResult<int>> ReadStreamAsync(
	Stream stream,
	byte[] buffer
)

参数

stream
类型:System.IOStream
数据流
buffer
类型:SystemByte
缓冲区

返回值

类型:TaskOperateResultInt32
带有成功标志的读取数据长度
参见