[#absl-ExtendCrc32cByZeroes]
= xref:absl.adoc[absl]::ExtendCrc32cByZeroes
:relfileprefix: ../
:mrdocs:

Extend a CRC32C value as if trailing zero bytes were appended&period;

== Synopsis

Declared in `&lt;absl&sol;crc&sol;crc32c&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/crc32c_t.adoc[crc32c&lowbar;t]
ExtendCrc32cByZeroes(
    xref:absl/crc32c_t.adoc[crc32c&lowbar;t] initial&lowbar;crc,
    size&lowbar;t length);
----

== Description

Computes a CRC32C value for a buffer with an `initial&lowbar;crc` CRC32C value, where `length` bytes with a value of 0 are appended to the buffer&period; Using this function is more efficient than computing a CRC32C value for the combined buffer from scratch&period;

This operation has a runtime cost of O(log(`length`))

== Return Value

The CRC32C value of the extended buffer&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *initial&lowbar;crc*
| The CRC32C value of the existing buffer&period;
| *length*
| The number of zero bytes appended&period;
|===


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