at path:
ROOT
/
sistema
/
vendors
/
jszip
/
lib
/
flate.js
run:
R
W
Run
generate
DIR
2026-04-09 04:12:40
R
W
Run
nodejs
DIR
2026-04-09 04:12:40
R
W
Run
reader
DIR
2026-04-09 04:12:40
R
W
Run
stream
DIR
2026-04-09 04:12:40
R
W
Run
base64.js
3.31 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
compressedObject.js
2.84 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
compressions.js
368 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
crc32.js
1.88 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
defaults.js
284 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
external.js
459 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
flate.js
2.31 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
index.js
1.32 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
license_header.js
392 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
load.js
2.76 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
nodejsUtils.js
1.75 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
object.js
12.23 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
readable-stream-browser.js
427 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
signature.js
294 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
support.js
1.06 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
utf8.js
7.92 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
utils.js
15.31 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
zipEntries.js
11.62 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
zipEntry.js
11 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
zipObject.js
4.42 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
error_log
up
📄
flate.js
Save
'use strict'; var USE_TYPEDARRAY = (typeof Uint8Array !== 'undefined') && (typeof Uint16Array !== 'undefined') && (typeof Uint32Array !== 'undefined'); var pako = require("pako"); var utils = require("./utils"); var GenericWorker = require("./stream/GenericWorker"); var ARRAY_TYPE = USE_TYPEDARRAY ? "uint8array" : "array"; exports.magic = "\x08\x00"; /** * Create a worker that uses pako to inflate/deflate. * @constructor * @param {String} action the name of the pako function to call : either "Deflate" or "Inflate". * @param {Object} options the options to use when (de)compressing. */ function FlateWorker(action, options) { GenericWorker.call(this, "FlateWorker/" + action); this._pako = null; this._pakoAction = action; this._pakoOptions = options; // the `meta` object from the last chunk received // this allow this worker to pass around metadata this.meta = {}; } utils.inherits(FlateWorker, GenericWorker); /** * @see GenericWorker.processChunk */ FlateWorker.prototype.processChunk = function (chunk) { this.meta = chunk.meta; if (this._pako === null) { this._createPako(); } this._pako.push(utils.transformTo(ARRAY_TYPE, chunk.data), false); }; /** * @see GenericWorker.flush */ FlateWorker.prototype.flush = function () { GenericWorker.prototype.flush.call(this); if (this._pako === null) { this._createPako(); } this._pako.push([], true); }; /** * @see GenericWorker.cleanUp */ FlateWorker.prototype.cleanUp = function () { GenericWorker.prototype.cleanUp.call(this); this._pako = null; }; /** * Create the _pako object. * TODO: lazy-loading this object isn't the best solution but it's the * quickest. The best solution is to lazy-load the worker list. See also the * issue #446. */ FlateWorker.prototype._createPako = function () { this._pako = new pako[this._pakoAction]({ raw: true, level: this._pakoOptions.level || -1 // default compression }); var self = this; this._pako.onData = function(data) { self.push({ data : data, meta : self.meta }); }; }; exports.compressWorker = function (compressionOptions) { return new FlateWorker("Deflate", compressionOptions); }; exports.uncompressWorker = function () { return new FlateWorker("Inflate", {}); };