util.Compress

From Garry's Mod
Jump to: navigation, search
 util.Compress( )

Description

Compresses the given string using the LZMA algorithm.

Use with net.WriteData and net.ReadData for networking and util.Decompress to decompress the data.

Arguments

string str

String to compress.

Returns

string

The compressed string, or nil if the input string was zero length ("").
Personal tools
Navigation