Lines Matching refs:utils

15 var utils = require("./utils");
27 var isArray = utils.getTypeOf(input) !== "string";
216 var utils = require("./utils");
283 var isArray = utils.getTypeOf(input) !== "string";
330 var utils = require("./utils");
354 utils.inherits(FlateWorker, GenericWorker);
364 this._pako.push(utils.transformTo(ARRAY_TYPE, chunk.data), false);
415 var utils = require("../utils");
496 encodedFileName = utils.transformTo("string", encodeFileName(file.name)),
497 utfEncodedFileName = utils.transformTo("string", utf8.utf8encode(file.name)),
499 encodedComment = utils.transformTo("string", encodeFileName(comment)),
500 utfEncodedComment = utils.transformTo("string", utf8.utf8encode(comment)),
681 var encodedComment = utils.transformTo("string", encodeFileName(comment));
766 utils.inherits(ZipFileWorker, GenericWorker);
1071 var utils = require("./utils");
1102 options = utils.extend(options || {}, {
1114 …return utils.prepareContent("the loaded zip file", data, true, options.optimizedBinaryString, opti…
1135 var safeName = utils.resolve(input.fileNameStr);
1162 var utils = require("../utils");
1177 utils.inherits(NodejsStreamInputAdapter, GenericWorker);
1240 var utils = require("../utils");
1241 utils.inherits(NodejsStreamOutputAdapter, Readable);
1341 var utils = require("./utils");
1362 var dataType = utils.getTypeOf(data),
1370 var o = utils.extend(originalOptions || {}, defaults);
1422 … zipObjectContent = utils.prepareContent(name, data, o.binary, o.optimizedBinaryString, o.base64);
1657 opts = utils.extend(options || {}, {
1680 utils.checkSupport(opts.type);
1739 var utils = require("../utils");
1747 utils.inherits(ArrayReader, DataReader);
1797 var utils = require("../utils");
1870 return utils.transformTo("string", this.readData(size));
1916 var utils = require("../utils");
1921 utils.inherits(NodeBufferReader, Uint8ArrayReader);
1937 var utils = require("../utils");
1942 utils.inherits(StringReader, DataReader);
1977 var utils = require("../utils");
1982 utils.inherits(Uint8ArrayReader, ArrayReader);
2001 var utils = require("../utils");
2014 var type = utils.getTypeOf(data);
2015 utils.checkSupport(type);
2023 return new Uint8ArrayReader(utils.transformTo("uint8array", data));
2025 return new ArrayReader(utils.transformTo("array", data));
2041 var utils = require("../utils");
2052 utils.inherits(ConvertWorker, GenericWorker);
2059 data : utils.transformTo(this.destType, chunk.data),
2070 var utils = require("../utils");
2080 utils.inherits(Crc32Probe, GenericWorker);
2094 var utils = require("../utils");
2107 utils.inherits(DataLengthProbe, GenericWorker);
2125 var utils = require("../utils");
2152 self.type = utils.getTypeOf(data);
2161 utils.inherits(DataWorker, GenericWorker);
2181 utils.delay(this._tickAndRepeat, [], this);
2196 utils.delay(this._tickAndRepeat, [], this);
2508 var utils = require("../utils");
2536 return utils.newBlob(utils.transformTo("arraybuffer", content), mimeType);
2540 return utils.transformTo(type, content);
2640 utils.checkSupport(internalType);
2676 utils.delay(fn, arguments, self);
2686 utils.delay(this._worker.resume, [], this._worker);
2703 utils.checkSupport("nodestream");
2764 var utils = require("./utils");
2917 return utils.applyFromCharCode(utf16buf);
2947 return utils.transformTo("nodebuffer", buf).toString("utf-8");
2950 buf = utils.transformTo(support.uint8array ? "uint8array" : "array", buf);
2964 utils.inherits(Utf8DecodeWorker, GenericWorker);
2971 var data = utils.transformTo(support.uint8array ? "uint8array" : "array", chunk.data);
3025 utils.inherits(Utf8EncodeWorker, GenericWorker);
3544 var utils = require("./utils");
3568 …Corrupted zip or bug: unexpected signature " + "(" + utils.pretty(signature) + ", expected " + uti…
3604 var decodeContent = utils.transformTo(decodeParamType, zipComment);
3731utils.MAX_VALUE_16BITS || this.diskWithCentralDirStart === utils.MAX_VALUE_16BITS || this.centralD…
3807 var utils = require("./utils");
3898 … Error("Corrupted zip : compression " + utils.pretty(this.compressionMethod) + " unknown (inner fi…
3979 if (this.uncompressedSize === utils.MAX_VALUE_32BITS) {
3982 if (this.compressedSize === utils.MAX_VALUE_32BITS) {
3985 if (this.localHeaderOffset === utils.MAX_VALUE_32BITS) {
3988 if (this.diskNumberStart === utils.MAX_VALUE_32BITS) {
4034 var fileNameByteArray = utils.transformTo(decodeParamType, this.fileName);
4043 var commentByteArray = utils.transformTo(decodeParamType, this.fileComment);
4603 var utils = require('./utils/common');
4721 this.options = utils.assign({
4841 strm.output = new utils.Buf8(chunkSize);
4854 this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output, strm.next_out)));
4856 this.onData(utils.shrinkBuf(strm.output, strm.next_out));
4910 this.result = utils.flattenChunks(this.chunks);
5005 var utils = require('./utils/common');
5096 this.options = utils.assign({
5207 strm.output = new utils.Buf8(chunkSize);
5252 if (tail) { utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0); }
5257 this.onData(utils.shrinkBuf(strm.output, strm.next_out));
5330 this.result = utils.flattenChunks(this.chunks);
5529 var utils = require('./common');
5547 var _utf8len = new utils.Buf8(256);
5572 buf = new utils.Buf8(buf_len);
5613 return String.fromCharCode.apply(null, utils.shrinkBuf(buf, len));
5633 var buf = new utils.Buf8(str.length);
5917 var utils = require('../utils/common');
6048 utils.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out);
6101 utils.arraySet(buf, strm.input, strm.next_in, len, start);
6268 utils.arraySet(s.window, s.window, _w_size, _w_size, 0);
7090 this.dyn_ltree = new utils.Buf16(HEAP_SIZE * 2);
7091 this.dyn_dtree = new utils.Buf16((2 * D_CODES + 1) * 2);
7092 this.bl_tree = new utils.Buf16((2 * BL_CODES + 1) * 2);
7102 this.bl_count = new utils.Buf16(MAX_BITS + 1);
7106 this.heap = new utils.Buf16(2 * L_CODES + 1); /* heap used to build the Huffman trees */
7115 this.depth = new utils.Buf16(2 * L_CODES + 1); //uch depth[2*L_CODES+1];
7271 s.window = new utils.Buf8(s.w_size * 2);
7272 s.head = new utils.Buf16(s.hash_size);
7273 s.prev = new utils.Buf16(s.w_size);
7284 s.pending_buf = new utils.Buf8(s.pending_buf_size);
7709 tmpDict = new utils.Buf8(s.w_size);
7710 utils.arraySet(tmpDict, dictionary, dictLength - s.w_size, s.w_size, 0);
8200 var utils = require('../utils/common');
8342 this.lens = new utils.Buf16(320); /* temporary storage for code lengths */
8343 this.work = new utils.Buf16(288); /* work area for code table building */
8375 state.lencode = state.lendyn = new utils.Buf32(ENOUGH_LENS);
8376 state.distcode = state.distdyn = new utils.Buf32(ENOUGH_DISTS);
8474 lenfix = new utils.Buf32(512);
8475 distfix = new utils.Buf32(32);
8527 state.window = new utils.Buf8(state.wsize);
8532 utils.arraySet(state.window, src, end - state.wsize, state.wsize, 0);
8542 utils.arraySet(state.window, src, end - copy, dist, state.wnext);
8546 utils.arraySet(state.window, src, end - copy, copy, 0);
8577 var hbuf = new utils.Buf8(4); /* buffer for gzip header crc calculation */
8809 utils.arraySet(
9041 utils.arraySet(output, input, next, copy, put);
9758 var utils = require('../utils/common');
9814 var count = new utils.Buf16(MAXBITS + 1); //[MAXBITS+1]; /* number of codes of each length */
9815 var offs = new utils.Buf16(MAXBITS + 1); //[MAXBITS+1]; /* offsets in table for each length */
10137 var utils = require('../utils/common');
10676 utils.arraySet(s.pending_buf, s.window, buf, len, s.pending);