react / wstein / node_modules / browserify / node_modules / browserify-zlib / node_modules / pako / lib / zlib / gzheader.js
80549 views'use strict';123function GZheader() {4/* true if compressed data believed to be text */5this.text = 0;6/* modification time */7this.time = 0;8/* extra flags (not used when writing a gzip file) */9this.xflags = 0;10/* operating system */11this.os = 0;12/* pointer to extra field or Z_NULL if none */13this.extra = null;14/* extra field length (valid if extra != Z_NULL) */15this.extra_len = 0; // Actually, we don't need it in JS,16// but leave for few code modifications1718//19// Setup limits is not necessary because in js we should not preallocate memory20// for inflate use constant limit in 65536 bytes21//2223/* space at extra (only when reading header) */24// this.extra_max = 0;25/* pointer to zero-terminated file name or Z_NULL */26this.name = '';27/* space at name (only when reading header) */28// this.name_max = 0;29/* pointer to zero-terminated comment or Z_NULL */30this.comment = '';31/* space at comment (only when reading header) */32// this.comm_max = 0;33/* true if there was or will be a header crc */34this.hcrc = 0;35/* true when done reading gzip header (not used when writing a gzip file) */36this.done = false;37}3839module.exports = GZheader;4041