Public Member Functions

sp::math::MD5CheckSum Class Reference

#include <spMathMD5CheckSum.hpp>

List of all members.

Public Member Functions

 MD5CheckSum ()
 MD5CheckSum (const void *Buffer, u32 Size)
 MD5CheckSum (const MD5CheckSum &Other)
 ~MD5CheckSum ()
bool valid () const
 Returns true if this is a valid MD5 check sum. Otherwise all 128 bits are 0.
io::stringc getHexString () const
 Returns the check-sum code as hex string (e.g. "EF07BB04FE5F05C55A77B0231F50FC6F").
MD5CheckSumoperator= (const MD5CheckSum &Other)
bool operator== (const MD5CheckSum &Other) const
bool operator!= (const MD5CheckSum &Other) const
UInt128 get () const
 Returns the computed check sum.

Detailed Description

MD5 check sum class. Usage example:

// My message
io::stringc Message = "My message which is to be check-sum'ed";
// Create MD5 check sum object
MD5CheckSum CheckSum(Message.c_str(), Message.size());
// Get hashed code as hex string
io::stringc HexCode = CheckSum.getHexString();
Since:
Version 3.2

Constructor & Destructor Documentation

sp::math::MD5CheckSum::MD5CheckSum (  ) 
sp::math::MD5CheckSum::MD5CheckSum ( const void *  Buffer,
u32  Size 
)
sp::math::MD5CheckSum::MD5CheckSum ( const MD5CheckSum Other  ) 
sp::math::MD5CheckSum::~MD5CheckSum (  ) 

Member Function Documentation

UInt128 sp::math::MD5CheckSum::get (  )  const [inline]

Returns the computed check sum.

io::stringc sp::math::MD5CheckSum::getHexString (  )  const

Returns the check-sum code as hex string (e.g. "EF07BB04FE5F05C55A77B0231F50FC6F").

bool sp::math::MD5CheckSum::operator!= ( const MD5CheckSum Other  )  const [inline]
MD5CheckSum& sp::math::MD5CheckSum::operator= ( const MD5CheckSum Other  )  [inline]
bool sp::math::MD5CheckSum::operator== ( const MD5CheckSum Other  )  const [inline]
bool sp::math::MD5CheckSum::valid (  )  const

Returns true if this is a valid MD5 check sum. Otherwise all 128 bits are 0.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines