BrotliEncoder.Flush(Span<Byte>, Int32) Method

Definition

Compresses an empty read-only span of bytes into its destination, which ensures that output is produced for all the processed input. An actual flush is performed when the source is depleted and there is enough space in the destination for the remaining data.

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

Parameters

destination
Span<Byte>

When this method returns, a span of bytes where the compressed data will be stored.

bytesWritten
Int32

When this method returns, the total number of bytes that were written to destination.

Returns

One of the enumeration values that describes the status with which the operation finished.

Applies to