Skip to content

Instantly share code, notes, and snippets.

// based on https://gist.github.com/jbrantly/499486
var Adler32 = function() {
this.s1 = 1;
this.s2 = 0;
};
Adler32.prototype.update = function(array, index, len) {
var s1 = this.s1;