EurekaLog
Menu

EurekaLog 7 Manual

GetCRC32 - EurekaLog 7 Documentation

Calculates CRC-32 checksum.

Unit

EHash

Syntax

function GetCRC32(
Buf: Pointer;
Size: DWord
): DWord; overload;

function GetCRC32(
const Src: String
): DWord; overload;

Parameters

Buf [in]

A pointer to data.

Size [in]

Size of data for Buf.

Src [in]

A string to get its CRC-32.

Return value

CRC-32 checksum of the specified data.

Remarks

CRC-32 algorithm is CRC-32-IEEE 802.3. Polynomial is $EDB88320. Starting value is $FFFFFFFF.

Overloaded GetCRC32 with string argument will convert string to UTF-8 form and then take CRC-32 of UTF-8 encoded string. Only string data will be used for calculations (excluding NULL-terminator). The result is guarantee to be the same in any IDE version.

See also



Send feedback... Build date: 2016-08-19
Last edited: 2016-08-19
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.

Permanent link to this article: http://www.eurekalog.com/help/eurekalog/topic_function_ehash_getcrc32.php