Sha256: a287e3748a31affe86831224e0ff389e40cf57718a168b7bd7d586a39acab283
Contents?: true
Size: 720 Bytes
Versions: 62
Compression:
Stored size: 720 Bytes
Contents
'use strict' var zlib = require('zlib'); exports.async = true; exports.run = function(data, level, callback) { //zlib.inflate(data.deflateBuffer, callback); var zlibStream = zlib.createInflate({ //chunkSize: 128*1024 }); var buffers = [], nread = 0; zlibStream.on('error', function(err) { zlibStream.removeAllListeners(); zlibStream=null; callback(err); }); zlibStream.on('data', function(chunk) { buffers.push(chunk); nread += chunk.length; }); zlibStream.on('end', function() { zlibStream.removeAllListeners(); zlibStream=null; var buffer = Buffer.concat(buffers); callback(null); }); zlibStream.write(data.deflateBuffer); zlibStream.end(); }
Version data entries
62 entries across 62 versions & 1 rubygems