crc implementation based on U_I
More...
#include <crc.hpp>
|
| crc_n (U_I width) |
|
| crc_n (U_I width, proto_generic_file &f) |
|
| crc_n (const crc_n &ref) |
|
| crc_n (crc_n &&ref) noexcept=default |
|
crc_n & | operator= (const crc_n &ref) |
|
crc_n & | operator= (crc_n &&ref) noexcept=default |
|
bool | operator== (const crc &ref) const override |
|
virtual void | compute (const infinint &offset, const char *buffer, U_I length) override |
|
virtual void | compute (const char *buffer, U_I length) override |
|
virtual void | clear () override |
|
virtual void | dump (proto_generic_file &f) const override |
|
virtual std::string | crc2str () const override |
|
virtual infinint | get_size () const override |
|
| crc (const crc &ref)=default |
|
| crc (crc &&ref) noexcept=default |
|
crc & | operator= (const crc &ref)=default |
|
crc & | operator= (crc &&ref) noexcept=default |
|
virtual bool | operator== (const crc &ref) const =0 |
|
bool | operator!= (const crc &ref) const |
|
virtual void | compute (const infinint &offset, const char *buffer, U_I length)=0 |
|
virtual void | compute (const char *buffer, U_I length)=0 |
|
virtual void | clear ()=0 |
|
virtual void | dump (proto_generic_file &f) const =0 |
|
virtual std::string | crc2str () const =0 |
|
virtual infinint | get_size () const =0 |
|
virtual crc * | clone () const =0 |
|
|
void | alloc (U_I width) |
|
void | copy_from (const crc_n &ref) |
|
void | copy_data_from (const crc_n &ref) |
|
void | destroy () |
|
|
U_I | size |
| size of checksum (non infinint mode) More...
|
|
unsigned char * | pointer |
| points to the next byte to modify (non infinint mode) More...
|
|
unsigned char * | cyclic |
| the checksum storage (non infinint mode) More...
|
|
crc implementation based on U_I
Definition at line 114 of file crc.hpp.
◆ crc_n()
libdar::crc_n::crc_n |
( |
const crc_n & |
ref | ) |
|
|
inline |
◆ ~crc_n()
libdar::crc_n::~crc_n |
( |
| ) |
|
|
inline |
◆ clear()
virtual void libdar::crc_n::clear |
( |
| ) |
|
|
overridevirtual |
◆ clone()
virtual crc * libdar::crc_n::clone |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ compute() [1/2]
virtual void libdar::crc_n::compute |
( |
const char * |
buffer, |
|
|
U_I |
length |
|
) |
| |
|
overridevirtual |
◆ compute() [2/2]
virtual void libdar::crc_n::compute |
( |
const infinint & |
offset, |
|
|
const char * |
buffer, |
|
|
U_I |
length |
|
) |
| |
|
overridevirtual |
◆ crc2str()
virtual std::string libdar::crc_n::crc2str |
( |
| ) |
const |
|
overridevirtual |
◆ dump()
◆ get_size()
virtual infinint libdar::crc_n::get_size |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ operator==()
bool libdar::crc_n::operator== |
( |
const crc & |
ref | ) |
const |
|
overridevirtual |
◆ cyclic
unsigned char* libdar::crc_n::cyclic |
|
private |
the checksum storage (non infinint mode)
Definition at line 142 of file crc.hpp.
◆ pointer
unsigned char* libdar::crc_n::pointer |
|
private |
points to the next byte to modify (non infinint mode)
Definition at line 141 of file crc.hpp.
◆ size
size of checksum (non infinint mode)
Definition at line 140 of file crc.hpp.
The documentation for this class was generated from the following file: