aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2021-03-25 13:48:34 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2021-03-25 13:48:34 +0100
commitf4d0f74dbbe0cc1dca7a5c40fea8e3f683cf5b38 (patch)
treec0025ae5d75ce19418d49c4bf4b8bd7cfd99f750 /src
parent7a045bd95770d5c9624963dd9b8bb8a614940841 (diff)
Allow seeding CRC32, CRC64 & Adler32 with previous partial hash.
Foo := []u8{'F', 'o','o', '3', 'F', 'o', 'o', '4'}; crc := hash.crc32(Foo[0:4]); crc = hash.crc32(Foo[4:], crc); crc_all := hash.crc32(Foo); fmt.printf("%8x %8x\n", crc, crc_all); d6285ff7 d6285ff7 a32 := hash.adler32(Foo[0:4]); a32 = hash.adler32(Foo[4:], a32); a32_all := hash.adler32(Foo); fmt.printf("%8x %8x\n", a32, a32_all); 0c5102b0 0c5102b0
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions