static u16 Calculate( const void * input, size_t length, u16 context = CRC16_CCITT_INIT );
| Name | Description | |
|---|---|---|
| in | input | Pointer to the input data. |
| in | length | Size of the input data. |
| in | context | Initial value of the context. Normally the default value is used. |
Calls all the associated functions needed to calculate CRC-16/CCITT, and gets the calculation result.
Internally, calls the following functions together: nn::util::Crc16Ccitt::InitializeContext, nn::util::Crc16Ccitt::Update, and nn::util::Crc16Ccitt::GetHash. This function cannot be used if you need to split up the data and call nn::util::Crc16Ccitt::Update multiple times.
Any size and alignment position can be used for the input data.
CONFIDENTIAL