Garry's Mod Wiki

Revision Difference

util.CRC#512338

<function name="CRC" parent="util" type="libraryfunc">⤶ <description>Generates the of the specified string.</description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="stringToHash" type="string">The string to calculate the checksum of.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="string">The unsigned 32 bit checksum.</ret>⤶ </rets>⤶ </function>⤶ ⤶ <example>⤶ <description>Prints out the CRC-32 checksum of "a".</description>⤶ <code>print( util.CRC( "a" ))</code>⤶ <output>3904355907</output>⤶ ⤶ </example>