BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlde::Crc32c Struct Reference

#include <bdlde_crc32c.h>

Static Public Member Functions

static unsigned int calculate (const void *data, bsl::size_t length, unsigned int crc=k_NULL_CRC32C)
 

Static Public Attributes

static const unsigned int k_NULL_CRC32C = 0U
 

Detailed Description

This class provides runtime-efficient utilities to calculate a CRC32-C checksum.

Member Function Documentation

◆ calculate()

static unsigned int bdlde::Crc32c::calculate ( const void *  data,
bsl::size_t  length,
unsigned int  crc = k_NULL_CRC32C 
)
static

Return the CRC32-C value calculated for the specified data over the specified length number of bytes, using the optionally specified crc value as the starting point for the calculation. Note that if data is 0, then length also must be 0.

Member Data Documentation

◆ k_NULL_CRC32C

const unsigned int bdlde::Crc32c::k_NULL_CRC32C = 0U
static

CRC32-C value for a 0 length input. Note that a buffer with this CRC32-C value need not be a 0 length input.


The documentation for this struct was generated from the following file: