mirror of
https://github.com/tribes2/engine.git
synced 2026-01-20 11:44:46 +00:00
20 lines
518 B
C++
20 lines
518 B
C++
//-----------------------------------------------------------------------------
|
|
// V12 Engine
|
|
//
|
|
// Copyright (c) 2001 GarageGames.Com
|
|
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef _CRC_H_
|
|
#define _CRC_H_
|
|
|
|
#define INITIAL_CRC_VALUE 0xffffffff
|
|
|
|
class Stream;
|
|
|
|
U32 calculateCRC(const void * buffer, S32 len, U32 crcVal = INITIAL_CRC_VALUE);
|
|
U32 calculateCRCStream(Stream *stream, U32 crcVal = INITIAL_CRC_VALUE);
|
|
|
|
#endif
|
|
|