Muokkaa

Jaa


BrotliEncoder Struct

Definition

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

public value class BrotliEncoder : IDisposable
public struct BrotliEncoder : IDisposable
type BrotliEncoder = struct
    interface IDisposable
Public Structure BrotliEncoder
Implements 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