Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
CRC Class Reference

#include <crc.h>

Public Member Functions

 CRC (void)
 
__forceinline void computeCRC (const void *buf, Int len)
 Compute the CRC for a buffer, added into current CRC.
 
void clear (void)
 Clears the CRC to 0.
 
UnsignedInt get (void) const
 

Static Public Member Functions

static unsigned long Memory (unsigned char *data, unsigned long length, unsigned long crc=0)
 
static unsigned long String (const char *string, unsigned long crc=0)
 

Detailed Description

Definition at line 58 of file crc.h.

Constructor & Destructor Documentation

◆ CRC()

CRC::CRC ( void )
inline

Definition at line 61 of file crc.h.

Member Function Documentation

◆ clear()

void CRC::clear ( void )
inline

Clears the CRC to 0.

Get the combined CRC

Definition at line 110 of file crc.h.

◆ computeCRC()

__forceinline void CRC::computeCRC ( const void * buf,
Int len )
inline

Compute the CRC for a buffer, added into current CRC.

Definition at line 64 of file crc.h.

◆ get()

UnsignedInt CRC::get ( void ) const
inline

Definition at line 116 of file crc.h.

◆ Memory()

unsigned long CRC::Memory ( unsigned char * data,
unsigned long length,
unsigned long crc = 0 )
static

Definition at line 206 of file crc.cpp.

◆ String()

unsigned long CRC::String ( const char * string,
unsigned long crc = 0 )
static

Definition at line 215 of file crc.cpp.


The documentation for this class was generated from the following files: