Bayonne2 / Common C++ 2 Framework
Public Member Functions | Protected Member Functions | Private Attributes
CRC16Digest Class Reference

A crc16 collection/compution hash accumulator class. More...

#include <digest.h>

Inheritance diagram for CRC16Digest:
Inheritance graph
[legend]
Collaboration diagram for CRC16Digest:
Collaboration graph
[legend]

Public Member Functions

 
  CRC16Digest (const CRC16Digest &crc)
 
virtual  ~CRC16Digest ()
 
void  initDigest (uint16 crc)
 
void  initDigest (void)
  Reset the digest table to an initial default value. More...
 
unsigned  getSize (void)
  Get the size of a digest in octets. More...
 
CRC16Digestoperator= (const CRC16Digest &right)
 
  operator const uint16 () const
 
uint16  getDigest (void)
 
unsigned  getDigest (unsigned char *buffer)
  Copy the binary digest buffer to user memory. More...
 
void  putDigest (const unsigned char *buffer, unsigned length)
  Put data into the digest bypassing the stream subsystem. More...
 

Protected Member Functions

int  overflow (int c)
 
std::ostream &  strDigest (std::ostream &os)
  print a digest string for export. More...
 

Private Attributes

uint16  crc16
 

Detailed Description

A crc16 collection/compution hash accumulator class.

Author
David Sugar dyfet.nosp@m.@ost.nosp@m.el.co.nosp@m.m crc16 computation hash.

Definition at line 152 of file digest.h.

Constructor & Destructor Documentation

CRC16Digest::CRC16Digest ( )
CRC16Digest::CRC16Digest ( const CRC16Digestcrc )
virtual CRC16Digest::~CRC16Digest ( )
inlinevirtual

Definition at line 167 of file digest.h.

Member Function Documentation

uint16 CRC16Digest::getDigest ( void  )
inline

Definition at line 181 of file digest.h.

unsigned CRC16Digest::getDigest ( unsigned char *  buffer )
virtual

Copy the binary digest buffer to user memory.

Returns
number of bytes in digest.
Parameters
buffer to write into.

Implements Digest.

unsigned CRC16Digest::getSize ( void  )
inlinevirtual

Get the size of a digest in octets.

Returns
number of bytes in digest.

Implements Digest.

Definition at line 173 of file digest.h.

void CRC16Digest::initDigest ( uint16  crc )
inline

Definition at line 169 of file digest.h.

void CRC16Digest::initDigest ( void  )
inlinevirtual

Reset the digest table to an initial default value.

Implements Digest.

Definition at line 171 of file digest.h.

CRC16Digest::operator const uint16 ( ) const
inline

Definition at line 178 of file digest.h.

CRC16Digest& CRC16Digest::operator= ( const CRC16Digestright )
int CRC16Digest::overflow ( int  c )
protected
void CRC16Digest::putDigest ( const unsigned char *  buffer,
unsigned  length 
)
virtual

Put data into the digest bypassing the stream subsystem.

Parameters
buffer to read from.
length of data.

Implements Digest.

std::ostream& CRC16Digest::strDigest ( std::ostream &  os )
protectedvirtual

print a digest string for export.

Returns
string representation of digest.

Implements Digest.

Field Documentation

uint16 CRC16Digest::crc16
private

Definition at line 155 of file digest.h.


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

Generated on Dec 21, 2017 for commoncpp2-1.8.1, ccrtp-1.7.2, libzrtpcpp-2.3.4, ccscript3-1.1.7, ccaudio2-1.0.0 and bayonne2-2.3.2 (after installation in /usr/local/) by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /