Murl Engine Lua Addon API  Version 1.0 beta
Murl.Util.CRC32Checksum

The CRC32 checksum class.


Table members

Functions


Murl.Util.CRC32Checksum.new()

The default constructor.

Murl.Util.CRC32Checksum new()

Returns
Murl.Util.CRC32Checksum


Methods


Calculate(data)

Calculate the CRC32 checksum from a data object.

Integer Calculate(Murl.ConstData data)

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

CalculateHex(srcString)

Calculate the MD5 checksum from a string.

String CalculateHex(String srcString)

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

CalculateHex(data)

Calculate the MD5 checksum from a data object.

String CalculateHex(Murl.ConstData data)

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

GetChecksumHex()

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

String GetChecksumHex()

Returns
String The hex-encoded checksum string.

GetChecksum()

Get the checksum from the recent checksum calculation.

Integer GetChecksum()

Returns
Integer The 32bit checksum value