NetSupportReadStreamAsync 方法 |
读取流中的数据到缓存区,读取的长度需要按照实际的情况来判断
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
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<int>> ReadStreamAsync(
Stream stream,
byte[] buffer
)
Public Shared Function ReadStreamAsync (
stream As Stream,
buffer As Byte()
) As Task(Of OperateResult(Of Integer))
public:
static Task<OperateResult<int>^>^ ReadStreamAsync(
Stream^ stream,
array<unsigned char>^ buffer
)
static member ReadStreamAsync :
stream : Stream *
buffer : byte[] -> Task<OperateResult<int>>
参数
- stream
- 类型:System.IOStream
数据流 - buffer
- 类型:SystemByte
缓冲区
返回值
类型:
TaskOperateResultInt32带有成功标志的读取数据长度
参见