util.CRC

From GMod Wiki

Revision as of 18:46, 14 March 2011 by Lexi (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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