[#BloombergLP-bdlde-Crc32c-calculate]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Crc32c.adoc[Crc32c]::calculate
:relfileprefix: ../../../
:mrdocs:

Return the CRC32&hyphen;C checksum of the specified data&period;

== Synopsis

Declared in `&lt;bdlde&lowbar;crc32c&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
unsigned int
calculate(
    void const* data,
    std::size&lowbar;t length,
    unsigned int crc = k&lowbar;NULL&lowbar;CRC32C);
----

== Description

Return the CRC32&hyphen;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&period; Note that if `data` is 0, then `length` also must be 0&period;

== Return Value

the CRC32&hyphen;C checksum of the specified data

== Parameters

[cols="1,4"]
|===
| Name| Description
| *data*
| memory region to checksum
| *length*
| number of bytes in `data`
| *crc*
| starting CRC32&hyphen;C value for the calculation
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
