LzmaDecompressor.decompress

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

Decompresses a single .xz stream and returns the result.

The decoder is reset before each call. If the input is the concatenation of several .xz streams, all of them are decoded and the concatenation of their payloads is returned.

The output buffer is grown on demand, so this method works even when the uncompressed size is not known in advance.

Parameters

dataThe compressed .xz data.

Returns

The decompressed data as a new buffer.

Throws

LzmaException if decompression fails.