2005-09-17 09:25:44 +00:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// Adler32
|
|
|
|
//---------------------------------------------------------------------------
|
2010-03-24 17:22:56 +00:00
|
|
|
//
|
|
|
|
// Reviewed for Unicode support by Jim Park -- 08/29/2007
|
2005-09-17 09:25:44 +00:00
|
|
|
|
|
|
|
#if !defined(Adler32_H)
|
|
|
|
#define Adler32_H
|
|
|
|
|
|
|
|
namespace Checksum {
|
|
|
|
typedef unsigned int uInt; /* 16 bits or more */
|
|
|
|
typedef unsigned long uLong; /* 32 bits or more */
|
|
|
|
typedef unsigned char Byte; /* 8 bits */
|
|
|
|
|
|
|
|
uLong adler32(uLong adler, const Byte *buf, uInt len);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // Adler32_H
|
|
|
|
|
|
|
|
|