语言

PayloadStream.Read(Byte[], Int32, Int32) 方法

定义

该函数由StreamReader在处理流时调用。 它看起来没有引用,但实际上是StreamReader必须实现的,就像Length一样。

public override int Read(byte[] buffer, int offset, int count);
override this.Read : byte[] * int * int -> int
Public Overrides Function Read (buffer As Byte(), offset As Integer, count As Integer) As Integer

参数

buffer
Byte[]

缓冲区可以读取。

offset
Int32

从哪里开始阅读。

count
Int32

阅读量。

返回

缓冲区中未读取的块数。

适用于