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

#include <CRC.H>

Public Member Functions

 CRCEngine (long initial=0)
 
long operator() (void) const
 
void operator() (char datum)
 
long operator() (void const *buffer, int length)
 
 operator long (void) const
 

Protected Member Functions

bool Buffer_Needs_Data (void) const
 
long Value (void) const
 

Protected Attributes

long CRC
 
int Index
 
union { 
 
   long   Composite 
 
   char   Buffer [sizeof(long)] 
 
StagingBuffer 
 

Detailed Description

Definition at line 55 of file CRC.H.

Constructor & Destructor Documentation

◆ CRCEngine()

CRCEngine::CRCEngine ( long initial = 0)
inline

Definition at line 59 of file CRC.H.

Member Function Documentation

◆ Buffer_Needs_Data()

bool CRCEngine::Buffer_Needs_Data ( void ) const
inlineprotected

Definition at line 77 of file CRC.H.

◆ operator long()

CRCEngine::operator long ( void ) const
inline

Definition at line 73 of file CRC.H.

◆ operator()() [1/3]

void CRCEngine::operator() ( char datum)

Definition at line 61 of file crc.cpp.

◆ operator()() [2/3]

long CRCEngine::operator() ( void const * buffer,
int length )

Definition at line 91 of file crc.cpp.

◆ operator()() [3/3]

long CRCEngine::operator() ( void ) const
inline

Definition at line 64 of file CRC.H.

◆ Value()

long CRCEngine::Value ( void ) const
inlineprotected

Definition at line 81 of file CRC.H.

Member Data Documentation

◆ Buffer

char CRCEngine::Buffer[sizeof(long)]

Definition at line 107 of file CRC.H.

◆ Composite

long CRCEngine::Composite

Definition at line 106 of file CRC.H.

◆ CRC

long CRCEngine::CRC
protected

Definition at line 92 of file CRC.H.

◆ Index

int CRCEngine::Index
protected

Definition at line 98 of file CRC.H.

◆ [union]

union { ... } CRCEngine::StagingBuffer

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