jigdo API
Last update by Admin on 2010-05-23
RsyncSum64 Class Reference
Like RsyncSum, but the checksum is a 64 bit value. More...
#include <rsyncsum.hh>
Public Member Functions | |
RsyncSum64 () | |
RsyncSum64 (const byte *mem, size_t len) | |
bool | operator== (const RsyncSum64 &x) const |
bool | operator!= (const RsyncSum64 &x) const |
bool | operator< (const RsyncSum64 &x) const |
bool | operator> (const RsyncSum64 &x) const |
bool | operator<= (const RsyncSum64 &x) const |
bool | operator>= (const RsyncSum64 &x) const |
INLINE RsyncSum64 & | addBack (const byte *mem, size_t len) |
INLINE RsyncSum64 & | addBack (byte x) |
INLINE RsyncSum64 & | addBackNtimes (byte x, size_t n) |
RsyncSum64 & | removeFront (const byte *mem, size_t len, size_t areaSize) |
RsyncSum64 & | removeFront (byte x, size_t areaSize) |
uint32 | getLo () const |
Return lower 32 bits of checksum. | |
uint32 | getHi () const |
Return higher 32 bits of checksum. | |
RsyncSum64 & | reset () |
bool | empty () const |
template<class Iterator> | |
Iterator | serialize (Iterator i) const |
template<class ConstIterator> | |
ConstIterator | unserialize (ConstIterator i) |
size_t | serialSizeOf () const |
Detailed Description
Like RsyncSum, but the checksum is a 64 bit value.However, the checksum quality would only improve very little if exactly the same algorithm were used, so this uses an additional 256-word lookup table for more "randomness".
Constructor & Destructor Documentation
RsyncSum64::RsyncSum64 | ( | ) | [inline] |
RsyncSum64::RsyncSum64 | ( | const byte * | mem, | |
size_t | len | |||
) | [inline] |
References addBack().
Member Function Documentation
bool RsyncSum64::operator== | ( | const RsyncSum64 & | x | ) | const [inline] |
bool RsyncSum64::operator!= | ( | const RsyncSum64 & | x | ) | const [inline] |
bool RsyncSum64::operator< | ( | const RsyncSum64 & | x | ) | const [inline] |
bool RsyncSum64::operator> | ( | const RsyncSum64 & | x | ) | const [inline] |
bool RsyncSum64::operator<= | ( | const RsyncSum64 & | x | ) | const [inline] |
bool RsyncSum64::operator>= | ( | const RsyncSum64 & | x | ) | const [inline] |
INLINE RsyncSum64& RsyncSum64::addBack | ( | const byte * | mem, | |
size_t | len | |||
) |
Referenced by fileToImage(), main(), and RsyncSum64().
INLINE RsyncSum64& RsyncSum64::addBack | ( | byte | x | ) |
INLINE RsyncSum64& RsyncSum64::addBackNtimes | ( | byte | x, | |
size_t | n | |||
) |
RsyncSum64 & RsyncSum64::removeFront | ( | const byte * | mem, | |
size_t | len, | |||
size_t | areaSize | |||
) |
RsyncSum64 & RsyncSum64::removeFront | ( | byte | x, | |
size_t | areaSize | |||
) | [inline] |
uint32 RsyncSum64::getLo | ( | ) | const [inline] |
uint32 RsyncSum64::getHi | ( | ) | const [inline] |
RsyncSum64& RsyncSum64::reset | ( | ) | [inline] |
Referenced by JigdoDescVec::get(), and main().
bool RsyncSum64::empty | ( | ) | const [inline] |
template<class Iterator>
Iterator RsyncSum64::serialize | ( | Iterator | i | ) | const [inline] |
References serialize4().
template<class ConstIterator>
ConstIterator RsyncSum64::unserialize | ( | ConstIterator | i | ) | [inline] |
References unserialize4().
size_t RsyncSum64::serialSizeOf | ( | ) | const [inline] |
Referenced by JigdoDescVec::get().
The documentation for this class was generated from the following files:
- util/rsyncsum.hh
- util/rsyncsum.cc
Generated on Tue Sep 23 14:27:43 2008 for jigdo by
