ZstdDecompressor.decompress

ubyte[] decompress(const(ubyte)[] data)

Decompresses the given data and returns the decompressed result.

First queries the frame content size to allocate an appropriately sized output buffer. Falls back to a heuristic buffer if the size is unknown.

Parameters

dataThe compressed data.

Returns

The decompressed data as a new buffer.

Throws

ZstdException if decompression fails.