BrotliDecoder.Decompress(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32) Method

Definition

Decompresses data that was compressed using the Brotli algorithm.

public:
 System::Buffers::OperationStatus Decompress(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesConsumed, [Runtime::InteropServices::Out] int % bytesWritten);
public System.Buffers.OperationStatus Decompress (ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten);
member this.Decompress : ReadOnlySpan<byte> * Span<byte> * int * int -> System.Buffers.OperationStatus
Public Function Decompress (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesConsumed As Integer, ByRef bytesWritten As Integer) As OperationStatus

Parameters

source
ReadOnlySpan<Byte>

A buffer containing the compressed data.

destination
Span<Byte>

When this method returns, a byte span containing the decompressed data.

bytesConsumed
Int32

The total number of bytes that were read from source.

bytesWritten
Int32

The total number of bytes that were written in the destination.

Returns

One of the enumeration values that indicates the status of the decompression operation.

Remarks

The return value can be as follows:

Applies to