Update the value of this checksum to incorporate the specified data having the specified length. If the current state is the default state, the resultant value of this checksum is the application of the CRC‐32 algorithm upon the currently given data of the given length. If this checksum has been previously provided data and has not been subsequently reset, the current state is not the default state and the resultant value is equivalent to applying the CRC‐32 algorithm upon the concatenation of all the provided data. Note that if data is 0, then length also must be 0.

Synopsis

Declared in <bdlde_crc32.h>

void
update(
    void const* data,
    std::size_t length);

Created with MrDocs