Skip to main content

StringCRC

StringCRC (inCRC, str)

The StringCRC function returns a 32-bit cyclic redundancy check value of bytes in str starting with inCRC.

Pass 0 for inCRC the first time you call StringCRC for a particular stream of bytes as represented by the string data.

Pass the last-returned value from StringCRC for inCRC if you are creating a CRC value for a given stream of bytes through multiple calls to StringCRC.

Details

Polynomial used is:

x32+x26+x23+x22+x16+x12+x11+x10+x8+x7+x5+x4+x2+x+1

See crc32.c in the public domain source code for zlib for more information.

See Also

WaveCRC, Hash, WaveHash