Garry's Mod Wiki

Revision Difference

util.Decompress#525129

<function name="Decompress" parent="util" type="libraryfunc"> <description>Decompresses the given string using [LZMA](https://ru.wikipedia.org/wiki/LZMA) algorithm. Used to decompress strings previously compressed with <page>util.Compress</page>.</description> <description>Decompresses the given string using [LZMA](https://en.wikipedia.org/wiki/LZMA) algorithm. Used to decompress strings previously compressed with <page>util.Compress</page>.</description> <realm>Shared and Menu</realm> <args> <arg name="compressedString" type="string">The compressed string to decompress.</arg> <arg name="maxSize" type="number" default="nil">The maximal size in bytes it will decompress.</arg> </args> <rets> <ret name="" type="string">The original, decompressed string or an empty string on failure or invalid input.</ret> </rets> </function>