Ler em inglês Editar

Partilhar via


BrotliEncoder Struct

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides methods and static methods to encode and decode data in a streamless, non-allocating, and performant manner using the Brotli data format specification.

C#
public struct BrotliEncoder : IDisposable
Inheritance
BrotliEncoder
Implements

Constructors

BrotliEncoder(Int32, Int32)

Initializes a new instance of the BrotliEncoder structure using the specified quality and window.

Methods

Compress(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32, Boolean)

Compresses a read-only byte span into a destination span.

Dispose()

Frees and disposes unmanaged resources.

Flush(Span<Byte>, Int32)

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.

GetMaxCompressedLength(Int32)

Gets the maximum expected compressed length for the provided input size.

TryCompress(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32, Int32)

Tries to compress a source byte span into a destination byte span, using the provided compression quality leven and encoder window bits.

TryCompress(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Tries to compress a source byte span into a destination span.

Applies to

Produto Versões
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1