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