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 maximum size of uncompressed data in bytes, if greater it fails.

Returns

1 string
The original, decompressed string or nil on failure or invalid input. Also returns empty string if the input string was zero length ("").