☜ | $%CRC16^STRINGDraft MDC Standard | ☞ |
CRC16^STRING : INTEGER ( STRING : STRING , SEED : INTEGER : O )
$%CRC16^STRING computes a Cyclic Redundancy Code of the 8-bit character string STRING using X16 + X15 + X2 + 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 0 (zero) is used for SEED. The message bytes are considered shifted in low order bit first and the return value shifted out low order bit first.
Click here for $%CRC16^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:22.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)