From: Martin Sevior (msevior@seviorpc.ph.unimelb.edu.au)
Date: Fri Sep 26 2003 - 03:06:41 EDT
CVS:
----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: GNUmakefile.am Makefile ut_growbuf.cpp
CVS: Added Files:
CVS: ut_crc32.cpp ut_crc32.h
CVS:
----------------------------------------------------------------------
Nice little public domain crc32 algorithim.
Works like this...
UT_CRC32 myCRC32;
myCRC.Fill(const char * string)
UT_uint32 result = myCRC.GetCRC32()
Result is a unique 32 integer for every string you might throw at it. My
quick tests indicate it works fine.
Martin
This archive was generated by hypermail 2.1.4 : Fri Sep 26 2003 - 02:19:54 EDT