name: Checksum

synopsis:

g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_system.a

#include <Checksum.h>

Checksum();
boolean compute();
boolean get();
quick start:

Checksum cksum;
SysString str(L"Joe");
cksum.compute(str);
ulong result = cksum.get();
description:

The Checksum class implements a variety of common checksum algorithms, including cyclic redundancy codes (CRC). The interface is designed to facilitate processing streams of data. After initialization, users pass strings to the class using the compute method. The current checksum value is retrieved using a get method, and can be reset at any time using the clear(Integral::RETAIN) method. This class is positioned in the System library because it is used by Sof, NameMap, and other low-level classes.

Note that only three CRC algorithms are currently supported: a 16-bit CCITT CRC (CRC_16_CCITT), another popular 16-bit CRC (CRC_16), and a 12-bit CRC (CRC_12). Further, only the fast implementation, which uses a table lookup, is currently supported.

dependencies:

public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

private methods:

examples:

notes: