absl::ConcatCrc32c

Compute the CRC32C value of two concatenated buffers.

Synopsis

Declared in <absl/crc/crc32c.h>

crc32c_t
ConcatCrc32c(
    crc32c_t crc1,
    crc32c_t crc2,
    size_t crc2_length);

Description

Calculates the CRC32C value of two buffers with known CRC32C values concatenated together.

Given a buffer with CRC32C value crc1 and a buffer with CRC32C value crc2 and length, crc2_length, returns the CRC32C value of the concatenation of these two buffers.

This operation has a runtime cost of O(log(crc2_length)).

Return Value

The CRC32C value of the concatenated buffers.

Parameters

NameDescription
crc1The CRC32C value of the first buffer.
crc2The CRC32C value of the second buffer.
crc2_lengthThe length in bytes of the second buffer.