jigdo API
MD5 Class Reference
Container for an already computed MD5Sum. More...
#include <md5sum.hh>
Public Member Functions | |
MD5 () | |
MD5 (const MD5Sum &md) | |
operator byte * () | |
Allows you to treat the object exactly like a pointer to a byte array. | |
operator const byte * () const | |
MD5 & | operator= (const MD5Sum &md) |
Assign an MD5Sum. | |
bool | operator< (const MD5 &x) const |
MD5 & | clear () |
Clear contents to zero. | |
string | toString () const |
Convert to string. | |
template<class Iterator> | |
Iterator | serialize (Iterator i) const |
template<class ConstIterator> | |
ConstIterator | unserialize (ConstIterator i) |
size_t | serialSizeOf () const |
Public Attributes | |
byte | sum [16] |
16 bytes of MD5 checksum |
Detailed Description
Container for an already computed MD5Sum.Objects of this class are smaller than MD5Sum objects by one pointer. As soon as the checksum calculation of an MD5Sum object has finish()ed, the pointer is no longer needed. If you need to store a large number of calculated MD5Sums, it may be beneficial to assign the MD5Sum to an MD5 to save space.
Constructor & Destructor Documentation
MD5::MD5 | ( | ) | [inline] |
MD5::MD5 | ( | const MD5Sum & | md | ) | [inline] |
References MD5Sum::sum.
Member Function Documentation
MD5::operator byte * | ( | ) | [inline] |
MD5::operator const byte * | ( | ) | const [inline] |
References sum.
string MD5::toString | ( | ) | const |
Convert to string.
References Base64Out< Output >::result(), sum, and Base64Out< Output >::write().
Referenced by JigdoDescVec::get(), and JigdoDesc::makeImage().
Iterator MD5::serialize | ( | Iterator | i | ) | const [inline] |
ConstIterator MD5::unserialize | ( | ConstIterator | i | ) | [inline] |
size_t MD5::serialSizeOf | ( | ) | const [inline] |
Referenced by JigdoDescVec::get(), and MD5Sum::serialSizeOf().
Member Data Documentation
byte MD5::sum[16] |
16 bytes of MD5 checksum
Referenced by clear(), MD5Sum::digest(), operator byte *(), operator const byte *(), operator<(), operator==(), serialize(), toString(), and unserialize().
The documentation for this class was generated from the following files:
Generated on Tue Sep 23 14:27:43 2008 for jigdo by
