☜ | $%CRCCCITT^STRINGDraft MDC Standard | ☞ |
CRCCCITT^STRING : INTEGER ( STRING : STRING , SEED : INTEGER : O )
$%CRCCCITT^STRING computes a Cyclic Redundancy Code of the 8-bit character string STRING using X16 + X12 + X5 + 1 as the polynomial. The optional parameter SEED supplies an initial value, which allows running CRC calculations on multiple strings. If missing, a default value of 65535 (216 - 1) is used for SEED. The message bytes are considered shifted in high order bit first and the return value shifted out high order bit first.
Click here for $%CRCCCITT^STRING sample code.
Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.
Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.
This page most recently updated on 15-Nov-2023, 13:15:55.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)