The OpenD Programming Language

crc32

Compute the CRC32 checksum of a buffer's worth of data.

uint
crc32
(
uint crc
,
const(void)[] buf
)

Parameters

crc uint

the starting checksum for the computation. Use 0 for a new checksum. Use the output of this function for a cumulative checksum.

buf const(void)[]

buffer containing input data

Return Value

Type: uint

A uint checksum for the provided input data and starting checksum

See Also

Meta