Garry's Mod Wiki

util.Decompress

  string util.Decompress( string compressedString, number maxSize = nil )

Description

Decompresses the given string using LZMA algorithm. Used to decompress strings previously compressed with util.Compress.

Arguments

1 string compressedString
The compressed string to decompress.
2 number maxSize = nil
The maximal size in bytes it will decompress.

Returns

1 string
The original, decompressed string or an empty string on failure or invalid input.