Murl::Util::CRC32Checksum Class Reference

The CRC32 checksum class. More...

#include "murl_util_checksum.h"

Public Member Functions

 CRC32Checksum ()
 The default constructor.
 
UInt32 Calculate (const void *srcData, UInt64 srcByteSize)
 Calculate the CRC32 checksum from a memory block. More...
 
UInt32 Calculate (const ConstData &data)
 Calculate the CRC32 checksum from a data object. More...
 
String CalculateHex (const String &srcString)
 Calculate the MD5 checksum from a string. More...
 
String CalculateHex (const ConstData &data)
 Calculate the MD5 checksum from a data object. More...
 
String GetChecksumHex () const
 Get the hex-encoded checksum string from the recent checksum calculation. More...
 
UInt32 GetChecksum () const
 Get the checksum from the recent checksum calculation. More...
 

Detailed Description

The CRC32 checksum class.

Member Function Documentation

◆ Calculate() [1/2]

UInt32 Murl::Util::CRC32Checksum::Calculate ( const void *  srcData,
UInt64  srcByteSize 
)

Calculate the CRC32 checksum from a memory block.

Parameters
srcDataPointer to the source memory block.
srcByteSizeThe byte size of the memory block.
Returns
The 32bit checksum value

◆ Calculate() [2/2]

UInt32 Murl::Util::CRC32Checksum::Calculate ( const ConstData data)

Calculate the CRC32 checksum from a data object.

Parameters
dataThe source data object.
Returns
The 32bit checksum value

◆ CalculateHex() [1/2]

String Murl::Util::CRC32Checksum::CalculateHex ( const String srcString)

Calculate the MD5 checksum from a string.

Parameters
srcStringThe source string object.
Returns
The hex-encoded checksum string.

◆ CalculateHex() [2/2]

String Murl::Util::CRC32Checksum::CalculateHex ( const ConstData data)

Calculate the MD5 checksum from a data object.

Parameters
dataThe source data object.
Returns
The hex-encoded checksum string.

◆ GetChecksumHex()

String Murl::Util::CRC32Checksum::GetChecksumHex ( ) const

Get the hex-encoded checksum string from the recent checksum calculation.

Returns
The hex-encoded checksum string.

◆ GetChecksum()

UInt32 Murl::Util::CRC32Checksum::GetChecksum ( ) const

Get the checksum from the recent checksum calculation.

Returns
The 32bit checksum value

The documentation for this class was generated from the following file:
  • murl_util_checksum.h


Copyright © 2011-2024 Spraylight GmbH.