Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cHashCodeT< TYPE_SIZE > Class Template Reference

#include <cHashCode.h>

Inheritance diagram for GrayLib::cHashCodeT< TYPE_SIZE >:
Gray::cMemStatic< TYPE_SIZE >

Public Member Functions

bool isValidHash () const noexcept
 
size_t get_HashSize () const noexcept
 
cHashCode get_HashCode () const
 
StrLen_t GetHexDigest (OUT char *pszHexString) const
 
cStringA get_HexDigest () const
 
HRESULT put_HexDigest (const char *pszInp)
 
- Public Member Functions inherited from Gray::cMemStatic< TYPE_SIZE >
size_t get_DataLength () const noexcept
 
const BYTE * get_DataBytes () const noexcept
 
 operator const BYTE * () const noexcept
 

Additional Inherited Members

- Public Attributes inherited from Gray::cMemStatic< TYPE_SIZE >
BYTE m_Data [TYPE_SIZE]
 All objects of this type are this size. More...
 
- Static Public Attributes inherited from Gray::cMemStatic< TYPE_SIZE >
static const size_t k_Size = TYPE_SIZE
 All hashes of this type are this size (bytes). More...
 
static const size_t k_SizeHexDigest = ((TYPE_SIZE * 2) + 1)
 hold a string with the hex digest of this. (chars). More...
 

Detailed Description

template<int TYPE_SIZE>
class GrayLib::cHashCodeT< TYPE_SIZE >

Store a hash of a specific known size/algorithm/type. TYPE_SIZE in bytes.

Member Function Documentation

◆ get_HashCode()

template<int TYPE_SIZE>
cHashCode GrayLib::cHashCodeT< TYPE_SIZE >::get_HashCode ( ) const
inline

◆ get_HashSize()

template<int TYPE_SIZE>
size_t GrayLib::cHashCodeT< TYPE_SIZE >::get_HashSize ( ) const
inlinenoexcept

◆ get_HexDigest()

template<int TYPE_SIZE>
cStringA GrayLib::cHashCodeT< TYPE_SIZE >::get_HexDigest ( ) const
inline

Get a text string of hex chars that represents the hash code. cHashMD5::SizeRawDigest

◆ GetHexDigest()

template<int TYPE_SIZE>
StrLen_t GrayLib::cHashCodeT< TYPE_SIZE >::GetHexDigest ( OUT char *  pszHexString) const
inline

ASSUME pszHexString is big enough.

◆ isValidHash()

template<int TYPE_SIZE>
bool GrayLib::cHashCodeT< TYPE_SIZE >::isValidHash ( ) const
inlinenoexcept

Is hash valid or finalized? Not all zero?

◆ put_HexDigest()

template<int TYPE_SIZE>
HRESULT GrayLib::cHashCodeT< TYPE_SIZE >::put_HexDigest ( const char *  pszInp)
inline

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