View Source Nostrum.Shard.Session.Compression.Zstd (Nostrum v0.10.0)

Implementation of compression methods for the zstd compression algorithm.

Internal module

This module is intended for exclusive usage inside of nostrum, and is documented for completeness and people curious to look behind the covers.

Summary

Functions

@spec create_context() :: reference() | {:error, any()}

Callback implementation for Nostrum.Shard.Session.Compression.create_context/0.

@spec inflate(reference(), iodata()) :: iolist() | {:error, any()}

Callback implementation for Nostrum.Shard.Session.Compression.inflate/2.

@spec reset_context(reference()) :: reference()

Callback implementation for Nostrum.Shard.Session.Compression.reset_context/1.