Adds compress(string) and decompress(string) functions that use Gmod's built-in compression system. decompress throws on an input string that isn't LZMA compressed.
The compression is very fast, with inputs of 64k+ characters barely taking any time, so I think the op counter limit is fine where it is.
I swear I'm going crazy thinking these existed. Maybe it was something else I was testing.
Adds
compress(string)
anddecompress(string)
functions that use Gmod's built-in compression system.decompress
throws on an input string that isn't LZMA compressed. The compression is very fast, with inputs of 64k+ characters barely taking any time, so I think the op counter limit is fine where it is.I swear I'm going crazy thinking these existed. Maybe it was something else I was testing.