Disk ARchive  2.7.15
Full featured and portable backup and archiving tool
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
libdar::crc_i Class Reference

crc implementation based on infinint More...

#include <crc.hpp>

+ Inheritance diagram for libdar::crc_i:
+ Collaboration diagram for libdar::crc_i:

Public Member Functions

 crc_i (const infinint &width)
 
 crc_i (const infinint &width, proto_generic_file &f)
 
 crc_i (const crc_i &ref)
 
 crc_i (crc_i &&ref) noexcept=default
 
crc_ioperator= (const crc_i &ref)
 
crc_ioperator= (crc_i &&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
 
- Public Member Functions inherited from libdar::crc
 crc (const crc &ref)=default
 
 crc (crc &&ref) noexcept=default
 
crcoperator= (const crc &ref)=default
 
crcoperator= (crc &&ref) noexcept=default
 
bool operator!= (const crc &ref) const
 

Protected Member Functions

virtual crcclone () const override
 

Private Member Functions

void copy_from (const crc_i &ref)
 
void copy_data_from (const crc_i &ref)
 

Private Attributes

infinint size
 size of the checksum
 
storage::iterator pointer
 points to the next byte to modify
 
storage cyclic
 the checksum storage
 

Additional Inherited Members

- Static Public Attributes inherited from libdar::crc
static constexpr U_I OLD_CRC_SIZE = 2
 

Detailed Description

crc implementation based on infinint

Definition at line 78 of file crc.hpp.


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