Feature #446 » crc32.h
| 1 |
#ifndef _LEPTO_CRC32_H_
|
|---|---|
| 2 |
#define _LEPTO_CRC32_H_
|
| 3 |
//-----------------------------------------------------------------------------
|
| 4 |
//
|
| 5 |
//
|
| 6 |
//
|
| 7 |
//-----------------------------------------------------------------------------
|
| 8 |
|
| 9 |
|
| 10 |
extern "C" |
| 11 |
{
|
| 12 |
typedef uint32_t crc32_t; |
| 13 |
|
| 14 |
crc32_t crc32Init( ); |
| 15 |
crc32_t crc32Update( crc32_t crc, const void *buf, uint32_t len ); |
| 16 |
crc32_t crc32Finalize( crc32_t crc ); |
| 17 |
crc32_t calcCrc32( const void *buf, uint32_t len ); |
| 18 |
|
| 19 |
crc32_t crc32MpegInit( ); |
| 20 |
crc32_t crc32MpegUpdate( crc32_t crc, const void *buf, uint32_t len ); |
| 21 |
crc32_t crc32MpegFinalize( crc32_t crc ); |
| 22 |
}
|
| 23 |
|
| 24 |
|
| 25 |
//---fin-----------------------------------------------------------------------
|
| 26 |
#endif // ? ! _LEPTO_CRC32_H_
|