ReadOnlyMemoryStreamRead(Byte, Int32, Int32) 方法
从当前流读取字节序列,并将流内的位置提升读取的字节数。
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
public override int Read(
byte[] buffer,
int offset,
int count
)
Public Overrides Function Read (
buffer As Byte(),
offset As Integer,
count As Integer
) As Integer
abstract Read :
buffer : byte[] *
offset : int *
count : int -> int
override Read :
buffer : byte[] *
offset : int *
count : int -> int
- buffer Byte
- 字节数组。当此方法返回时,该缓冲区包含从当前源读取的字节。
- offset Int32
- buffer中的从零开始的字节偏移量,从此处开始存储从当前流中读取的数据。
- count Int32
- 要从当前流中读取的最大字节数。
Int32读入缓冲区中的总字节数。如果当前可用的字节数少于所请求的字节数,则总字节数可能会少于所请求的字节数;如果已到达流的末尾,则为零。