jigdo API

RsyncSum64 Class Reference

Like RsyncSum, but the checksum is a 64 bit value. More...

#include <rsyncsum.hh>

List of all members.


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 RsyncSum64addBack (const byte *mem, size_t len)
INLINE RsyncSum64addBack (byte x)
INLINE RsyncSum64addBackNtimes (byte x, size_t n)
RsyncSum64removeFront (const byte *mem, size_t len, size_t areaSize)
RsyncSum64removeFront (byte x, size_t areaSize)
uint32 getLo () const
 Return lower 32 bits of checksum.
uint32 getHi () const
 Return higher 32 bits of checksum.
RsyncSum64reset ()
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]

References sumHi, and sumLo.

bool RsyncSum64::operator!= ( const RsyncSum64 x  )  const [inline]

References sumHi, and sumLo.

bool RsyncSum64::operator< ( const RsyncSum64 x  )  const [inline]

References sumHi, and sumLo.

bool RsyncSum64::operator> ( const RsyncSum64 x  )  const [inline]

References sumHi, and sumLo.

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 
)

References getHi(), and getLo().

Referenced by main().

RsyncSum64 & RsyncSum64::removeFront ( byte  x,
size_t  areaSize 
) [inline]

uint32 RsyncSum64::getLo (  )  const [inline]

Return lower 32 bits of checksum.

Referenced by printBlockSums(), and removeFront().

uint32 RsyncSum64::getHi (  )  const [inline]

Return higher 32 bits of checksum.

Referenced by printBlockSums(), and removeFront().

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:

Generated on Tue Sep 23 14:27:43 2008 for jigdo by  doxygen 1.5.6