util.CRC

From GMod Wiki

Jump to: navigation, search
Function
Syntax util.CRC( String or Integer )
Where is this used?
Description:
This returns a value that can be used to identify something
Returns: String
Part of Library: Util
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Util.CRC]Util.CRC [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionReturns the CRC of 'Hello!'
Used onNewerShared.png
Code
 
 
print(util.CRC( 'Hello!' ))
 
 
OutputPrints 2636827734 in console.


Additional Notes

http://en.wikipedia.org/wiki/Cyclic_redundancy_check

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox