Edit

Share via


ZLibStream.Read Method

Definition

Overloads

Read(Span<Byte>)

Reads a number of decompressed bytes into the specified byte span.

Read(Byte[], Int32, Int32)

Reads a number of decompressed bytes into the specified byte array.

Read(Span<Byte>)

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

Reads a number of decompressed bytes into the specified byte span.

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

Parameters

buffer
Span<Byte>

The span to read the data into.

Returns

The number of bytes that were read into the byte span.

Applies to

Read(Byte[], Int32, Int32)

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

Reads a number of decompressed bytes into the specified byte array.

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

Parameters

buffer
Byte[]

The byte array to read the data into.

offset
Int32

The byte offset in array at which to begin reading data from the stream.

count
Int32

The maximum number of bytes to read.

Returns

The number of bytes that were read into the byte array.

Applies to