Method TryDecompress
- Namespace
- DSharpPlus.Net.Gateway.Compression
- Assembly
- DSharpPlus.dll
TryDecompress(ReadOnlySpan<byte>, ArrayPoolBufferWriter<byte>)
Attempts to decompress the provided payload.
bool TryDecompress(ReadOnlySpan<byte> compressed, ArrayPoolBufferWriter<byte> decompressed)
Parameters
compressed
ReadOnlySpan<byte>The raw, compressed data.
decompressed
ArrayPoolBufferWriter<byte>A buffer writer for writing decompressed data.
Returns
- bool
A value indicating whether the operation was successful.