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
data | The compressed data. |
Returns
The decompressed data as a new buffer.
Throws
ZstdException if decompression fails.