'use strict'; //var z_inflate = require('./zlib/inflate'); var utils = require('./zlib/utils'); var Inflate = function(/*options*/) { }; Inflate.prototype.push = function(/*data_in*/) { }; Inflate.prototype.finish = function() { }; Inflate.prototype.onData = function(/*data_out*/) { }; Inflate.prototype.onEnd = function(/*error*/) { }; function inflate (input, options) { var result; var chains = []; var inflator = new Inflate(options); inflator.onData = function(data_out) { chains.push(data_out); }; inflator.onEnd = function(error) { var i, l, len, pos, chain; if (error) { throw error; } // calculate data length len = 0; for (i=0, l=chains.length; i