Checksum calculator, based on Adler32 algorithm.
Updates checksum by calculating checksum of the given buffer and adding it to current value.
Parameter | Type | Description |
---|---|---|
checksum | number |
current checksum. |
buffer | Uint8Array |
data byte array. |
offset | number |
offset in the buffer. |
length | number |
length of data to be used from the stream. |
Returns number