oasys::CRC32 Class Reference

#include <CRC32.h>

List of all members.


Detailed Description

Definition at line 26 of file CRC32.h.


Public Types

typedef u_int32_t CRC_t

Public Member Functions

 CRC32 ()
CRC_t value ()
void reset ()
void update (const u_char *buf, size_t length)
void update (const char *buf, size_t length)

Static Public Member Functions

static CRC_t from_bytes (u_char *buf)

Private Attributes

CRC_t crc_

Member Typedef Documentation

typedef u_int32_t oasys::CRC32::CRC_t

Definition at line 30 of file CRC32.h.


Constructor & Destructor Documentation

oasys::CRC32::CRC32 (  ) 

Definition at line 112 of file CRC32.cc.

References reset().


Member Function Documentation

void oasys::CRC32::update ( const u_char *  buf,
size_t  length 
)

Update the crc with the data in the buf

Definition at line 124 of file CRC32.cc.

References crc_, and oasys::CRCTABLE.

Referenced by oasys::Unmarshal::begin_action(), oasys::Marshal::end_action(), oasys::MarshalCRC::process(), and update().

void oasys::CRC32::update ( const char *  buf,
size_t  length 
) [inline]

Update the crc with the data in the buf

Definition at line 36 of file CRC32.h.

References update().

CRC32::CRC_t oasys::CRC32::value (  ) 

Definition at line 137 of file CRC32.cc.

References crc_, and oasys::CRCXOROT.

Referenced by oasys::Unmarshal::begin_action(), oasys::MarshalCRC::crc(), and oasys::Marshal::end_action().

void oasys::CRC32::reset (  ) 

Definition at line 118 of file CRC32.cc.

References crc_, and oasys::CRCINIT.

Referenced by CRC32().

CRC32::CRC_t oasys::CRC32::from_bytes ( u_char *  buf  )  [static]

Definition at line 143 of file CRC32.cc.

Referenced by oasys::Unmarshal::begin_action().


Member Data Documentation

CRC_t oasys::CRC32::crc_ [private]

Definition at line 47 of file CRC32.h.

Referenced by reset(), update(), and value().


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 08:36:26 2007 for DTN Reference Implementation by  doxygen 1.5.3