语言

ZLibStream.Read 方法

定义

重载

名称 说明
Read(Span<Byte>)

将多个解压缩的字节读入指定的字节范围。

Read(Byte[], Int32, Int32)

将许多解压缩的字节读入指定的字节数组。

Read(Span<Byte>)

Source:
ZLibStream.cs
Source:
ZLibStream.cs
Source:
ZLibStream.cs
Source:
ZLibStream.cs
Source:
ZLibStream.cs

将多个解压缩的字节读入指定的字节范围。

public:
 override int Read(Span<System::Byte> buffer);
public override int Read(Span<byte> buffer);
override this.Read : Span<byte> -> int
Public Overrides Function Read (buffer As Span(Of Byte)) As Integer

参数

buffer
Span<Byte>

将数据读取到的跨度。

返回

读取到字节范围的字节数。

适用于

Read(Byte[], Int32, Int32)

Source:
ZLibStream.cs
Source:
ZLibStream.cs
Source:
ZLibStream.cs
Source:
ZLibStream.cs
Source:
ZLibStream.cs

将许多解压缩的字节读入指定的字节数组。

public:
 override int Read(cli::array <System::Byte> ^ buffer, int offset, int count);
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

要读取的最大字节数。

返回

读取到字节数组中的字节数。

适用于