Calculates CRC-16 checksum.
Unit
Syntax
function GetCRC16(
const Src: String
): Word;
Parameters
Src [in]
A string to get its CRC-16.
Return value
CRC-16 checksum of the specified data.
Remarks
CRC-16 algorithm is CRC-16-CCITT. Polynomial is $1021. Starting value is $FFFF.
GetCRC16 will convert string to UTF-8 form and then take CRC-16 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.
This routine is used to calculate BugID from string source.
See also
| • | GetCRC32 |
| 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_getcrc16.php |
|