Table of Contents

Interface IPayloadDecompressor

Namespace
DSharpPlus.Net.Gateway.Compression
Assembly
DSharpPlus.dll

Contains functionality for decompressing inbound gateway payloads.

public interface IPayloadDecompressor

Properties

IsTransportCompression

Indicates whether the present compression format is connection-wide.

Name

Gets the name of the decompressor.

Methods

Initialize()

Initializes the decompressor for a new connection.

Reset()

Frees and destroys all internal state when a connection has terminated.

TryDecompress(ReadOnlySpan<byte>, ArrayPoolBufferWriter<byte>)

Attempts to decompress the provided payload.