A crc16 collection/compution hash accumulator class.
More...
#include <digest.h>
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.
CRC16Digest::CRC16Digest |
( |
| ) |
|
virtual CRC16Digest::~CRC16Digest |
( |
| ) |
|
|
inlinevirtual |
uint16 CRC16Digest::getDigest |
( |
void |
| ) |
|
|
inline |
unsigned CRC16Digest::getDigest |
( |
unsigned char * |
buffer | ) |
|
|
virtual |
Copy the binary digest buffer to user memory.
- Returns
- number of bytes in digest.
- Parameters
-
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 |
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 |
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.
uint16 CRC16Digest::crc16 |
|
private |
The documentation for this class was generated from the following file: