> // unit synacode.pas from release 37, same results with synasnap. //
> function Crc16(const Value: AnsiString): Word;
>
> For input string '320002872111091600' crc16() returns 59479 (0xE857).
>
> But according to several online crc calculators,
> CRC16('320002872111091600') must be 57637 (0xE125) ?..
This is very oldpiece of code, I am not using it. It can have some
bugs.
Major problem is what CRC16 is used. Exists three major CRC16
variants:
- CRC16
- CRC-CCITT
- CRC-XMODEM
I not remember what exact version is implemented here, maybe it is
XMODEM variant.
I will check it. (Maybe will be best to implement all three
variants...)
--
Lukas Gebauer.
E-mail: [EMAIL PROTECTED]
http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public