nn::util::Crc16 Class

Syntax

class Crc16

Description

This is the class for calculating CRC-16.

CRC-16 is an algorithm that finds an 16-bit hash value. CRC-16 is the algorithm used in various compression programs including ARC and LHA. One restriction is that the hash value does not change when a leading 0 byte is appended to the start of the data.

Member Functions

Crc16 This is the default constructor.
InitializeContext Initializes the context used for calculating CRC-16 hash values.
Update Updates the CRC-16 hash value with the input data.
GetHash Gets the final result of calculating the CRC-16 hash value.
S Calculate Calls all the associated functions needed to calculate CRC-16, and gets the calculation result.

Revision History

2010/10/15
Initial version.

CONFIDENTIAL