Garry's Mod Wiki

Revision Difference

util.CRC#520250

<function name="CRC" parent="util" type="libraryfunc"> <description>Generates the of the specified string.</description> <description>Generates the [CRC Checksum](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) 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>