Garry's Mod Wiki

Revision Difference

util.Compress#512339

<function name="Compress" parent="util" type="libraryfunc">⤶ <description>⤶ Compresses the given string using the algorithm.⤶ ⤶ Use with <page>net.WriteData</page> and <page>net.ReadData</page> for networking and <page>util.Decompress</page> to decompress the data.⤶ </description>⤶ <realm>Shared and Menu</realm>⤶ <args>⤶ <arg name="str" type="string">String to compress.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="string">The compressed string, or nil if the input string was zero length ("").</ret>⤶ </rets>⤶ </function>⤶ ⤶