Atlantiraptor Docs

xz_decompress

Type: Function · Category: encode

Decompress an xz compressed block of data.

For example, the payload of an RPM package is usually an xz compressed cpio archive.

Returns NULL if the data can not be decompressed.

Argument Type Description
string string (required) Data to decompress
max_bytes int64 Maximum length of bytes to read into memory

Platforms: macOS, Linux, Windows