Checksum functions

AddChecksum

Declaration

Checksum AddChecksum(Checksum checksum1, Checksum checksum2)

Description

Adds two checksums into a new one representing the two original checksums.

Supported Runtime Versions

1.0, 2.0, 3.0, 4.0, 5.0

Parameters Description
checksum1 First checksum to be added.
checksum2 Second checksum to be added.

Return Value

Sum of the two checksums.

CalculateChecksum

Declaration

Checksum CalculateChecksum(string value, string key)

Description

Calculates a checksum for a string value.

Supported Runtime Versions

1.0, 2.0, 3.0, 4.0, 5.0

Parameters Description
value The string value to calculate a checksum for.
key The key to be used for calculating the checksum.

Return Value

The checksum for the string value.

CalculateChecksum

Declaration

Checksum CalculateChecksum(double value, string key)

Description

Calculates a checksum for a double value.

Supported Runtime Versions

1.0, 2.0, 3.0, 4.0, 5.0

Parameters Description
value The double value to calculate a checksum for.
key The key to be used for calculating the checksum.

Return Value

The checksum for the double value.

CalculateChecksum

Declaration

Checksum CalculateChecksum(int value, string key)

Description

Calculates a checksum for an int value.

Supported Runtime Versions

1.0, 2.0, 3.0, 4.0, 5.0

Parameters Description
value The int value to calculate a checksum for.
key The key to be used for calculating the checksum.

Return Value

The checksum for the int value.

CalculateChecksum

Declaration

Checksum CalculateChecksum(OLAPDataArea value, string key)

Description

Calculates a checksum for all values in an OLAP data area.

Supported Runtime Versions

1.0, 2.0, 3.0, 4.0, 5.0

Parameters Description
value The OlapDataArea value to calculate a checksum for.
key The key to be used for calculating the checksum.

Return Value

The checksum for the OlapDataArea value.

PrintChecksum

Declaration

string PrintChecksum(Checksum checksum)

Description

Returns the hexadecimal representation of a checksum as a string.

Supported Runtime Versions

1.0, 2.0, 3.0, 4.0, 5.0

Parameters Description
checksum Checksum to be turned into a hexadecimal string.

Return Value

Hexadecimal representation of the checksum as a string.