adler32

fnuint adler32(uint adler, const(void)[] buf)

Compute the Adler-32 checksum of a buffer's worth of data.

Parameters

adlerthe starting checksum for the computation. Use 1 for a new checksum. Use the output of this function for a cumulative checksum.
bufbuffer containing input data

Returns

A uint checksum for the provided input data and starting checksum

See Also