GNU CommonC++
Public Member Functions | Protected Member Functions | List of all members
ost::CRC32Digest Class Reference

A crc32 collection/computation hash accumulator class. More...

#include <digest.h>

Inheritance diagram for ost::CRC32Digest:
ost::Digest

Public Member Functions

 CRC32Digest ()
 
 CRC32Digest (const CRC32Digest &crc)
 
void initDigest (void)
 
unsigned getSize (void)
 
 operator const uint32 () const
 
uint32 getDigest (void)
 
unsigned getDigest (unsigned char *buffer)
 
void putDigest (const unsigned char *buffer, unsigned length)
 
CRC32Digestoperator= (const CRC32Digest &right)
 
- Public Member Functions inherited from ost::Digest
virtual ~Digest ()
 

Protected Member Functions

unsigned char overflow (unsigned char octet)
 
std::ostream & strDigest (std::ostream &os)
 
- Protected Member Functions inherited from ost::Digest
 Digest ()
 

Detailed Description

A crc32 collection/computation hash accumulator class.

Author
Kevin Kraatz kraat.nosp@m.z@ar.nosp@m.lut.u.nosp@m.texa.nosp@m.s.edu

crc32 computation hash.

Examples
crc32.cpp.

Constructor & Destructor Documentation

◆ CRC32Digest() [1/2]

ost::CRC32Digest::CRC32Digest ( )

◆ CRC32Digest() [2/2]

ost::CRC32Digest::CRC32Digest ( const CRC32Digest crc)

Member Function Documentation

◆ getDigest() [1/2]

unsigned ost::CRC32Digest::getDigest ( unsigned char *  buffer)
virtual

Implements ost::Digest.

◆ getDigest() [2/2]

uint32 ost::CRC32Digest::getDigest ( void  )
inline
Examples
crc32.cpp.

◆ getSize()

unsigned ost::CRC32Digest::getSize ( void  )
inlinevirtual

Implements ost::Digest.

◆ initDigest()

void ost::CRC32Digest::initDigest ( void  )
virtual

Implements ost::Digest.

◆ operator const uint32()

ost::CRC32Digest::operator const uint32 ( ) const
inline

◆ operator=()

CRC32Digest& ost::CRC32Digest::operator= ( const CRC32Digest right)

◆ overflow()

unsigned char ost::CRC32Digest::overflow ( unsigned char  octet)
protected

◆ putDigest()

void ost::CRC32Digest::putDigest ( const unsigned char *  buffer,
unsigned  length 
)
virtual

Implements ost::Digest.

Examples
crc32.cpp.

◆ strDigest()

std::ostream& ost::CRC32Digest::strDigest ( std::ostream &  os)
protectedvirtual

Implements ost::Digest.


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