MCPcopy Create free account
hub / github.com/TruthHun/BookStack / GZheader

Function GZheader

static/word2md/mammoth.browser.js:20103–20137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20101
20102
20103function GZheader() {
20104 /* true if compressed data believed to be text */
20105 this.text = 0;
20106 /* modification time */
20107 this.time = 0;
20108 /* extra flags (not used when writing a gzip file) */
20109 this.xflags = 0;
20110 /* operating system */
20111 this.os = 0;
20112 /* pointer to extra field or Z_NULL if none */
20113 this.extra = null;
20114 /* extra field length (valid if extra != Z_NULL) */
20115 this.extra_len = 0; // Actually, we don't need it in JS,
20116 // but leave for few code modifications
20117
20118 //
20119 // Setup limits is not necessary because in js we should not preallocate memory
20120 // for inflate use constant limit in 65536 bytes
20121 //
20122
20123 /* space at extra (only when reading header) */
20124 // this.extra_max = 0;
20125 /* pointer to zero-terminated file name or Z_NULL */
20126 this.name = '';
20127 /* space at name (only when reading header) */
20128 // this.name_max = 0;
20129 /* pointer to zero-terminated comment or Z_NULL */
20130 this.comment = '';
20131 /* space at comment (only when reading header) */
20132 // this.comm_max = 0;
20133 /* true if there was or will be a header crc */
20134 this.hcrc = 0;
20135 /* true when done reading gzip header (not used when writing a gzip file) */
20136 this.done = false;
20137}
20138
20139module.exports = GZheader;
20140

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected