decode.js
function $body(byte, i, chunk) {
      if (inf.write(byte)) return $body;
      var buf = inf.flush();
      inf.recycle();
      if (buf.length) {
        parts.push(buf);
      }
      emitObject();
      // If this was all the objects, start calculating the sha1sum
      if (--num) return $header;
      sha1sum.update(bops.subarray(chunk, 0, i + 1));
      return $checksum;
    }
function $body(byte, i, chunk) {
      if (inf.write(byte)) return $body;
      var buf = inf.flush();
      inf.recycle();
      if (buf.length) {
        parts.push(buf);
      }
      emitObject();
      // If this was all the objects, start calculating the sha1sum
      if (--num) return $header;
      sha1sum.update(bops.subarray(chunk, 0, i + 1));
      return $checksum;
    }
function $body ( byte , i , chunk ) { if ( inf . write ( byte ) ) return $body ; var buf = inf . flush ( ) ; inf . recycle ( ) ; if ( buf . length ) { parts . push ( buf ) ; } emitObject ( ) ; // If this was all the objects, start calculating the sha1sum if ( -- num ) return $header ; sha1sum . update ( bops . subarray ( chunk , 0 , i + 1 ) ) ; return $checksum ; }
Feed the deflated code to the inflate engine
Feed the deflated code to the inflate engine