7 | --------------------------------------------------------------------------------
8 | -- CRC-32
9 | --------------------------------------------------------------------------------
11 | ||| Update an existing CRC-32 checksum with the contents of a byte buffer.
12 | |||
13 | ||| This function can be used incrementally by passing the checksum returned
14 | ||| from one invocation as the initial checksum of the next.
15 | |||
16 | ||| The initial CRC-32 value for a new checksum is `0`.
17 | |||
18 | export
26 | ||| Compute the CRC-32 checksum of an immutable byte buffer.
27 | |||
28 | ||| This is equivalent to calling `crc32Update` with zlib's initial CRC-32
29 | ||| value of `0`.
30 | |||
31 | export
38 | --------------------------------------------------------------------------------
39 | -- Adler-32
40 | --------------------------------------------------------------------------------
42 | ||| Update an existing Adler-32 checksum with the contents of a byte buffer.
43 | |||
44 | ||| This function can be used incrementally by passing the checksum returned
45 | ||| from one invocation as the initial checksum of the next.
46 | |||
47 | ||| The initial Adler-32 value for a new checksum is `1`.
48 | |||
49 | export
57 | ||| Compute the Adler-32 checksum of an immutable byte buffer.
58 | |||
59 | ||| This is equivalent to calling `adler32Update` with zlib's initial
60 | ||| Adler-32 value of `1`.
61 | |||
62 | export