1 Clazz.declarePackage ("JU");
2 Clazz.load (["JU.Checksum"], "JU.Adler32", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
7 Clazz.instantialize (this, arguments);
8 }, JU, "Adler32", null, JU.Checksum);
9 Clazz.prepareFields (c$, function () {
10 this.b1 = Clazz.newByteArray (1, 0);
12 Clazz.overrideMethod (c$, "resetLong",
14 this.s1 = init & 0xffff;
15 this.s2 = (init >> 16) & 0xffff;
17 Clazz.overrideMethod (c$, "reset",
22 Clazz.overrideMethod (c$, "getValue",
24 return ((this.s2 << 16) | this.s1);
26 Clazz.overrideMethod (c$, "update",
27 function (buf, index, len) {
29 this.s1 += buf[index++] & 0xff;
34 }var len1 = Clazz.doubleToInt (len / 5552);
35 var len2 = len % 5552;
40 this.s1 += buf[index++] & 0xff;
49 this.s1 += buf[index++] & 0xff;
55 Clazz.overrideMethod (c$, "updateByteAsInt",
58 this.update (this.b1, 0, 1);
60 Clazz.defineStatics (c$,