source: trip-planner-front/node_modules/pako/lib/zlib/gzheader.js@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[6a3a178]1'use strict';
2
3// (C) 1995-2013 Jean-loup Gailly and Mark Adler
4// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
5//
6// This software is provided 'as-is', without any express or implied
7// warranty. In no event will the authors be held liable for any damages
8// arising from the use of this software.
9//
10// Permission is granted to anyone to use this software for any purpose,
11// including commercial applications, and to alter it and redistribute it
12// freely, subject to the following restrictions:
13//
14// 1. The origin of this software must not be misrepresented; you must not
15// claim that you wrote the original software. If you use this software
16// in a product, an acknowledgment in the product documentation would be
17// appreciated but is not required.
18// 2. Altered source versions must be plainly marked as such, and must not be
19// misrepresented as being the original software.
20// 3. This notice may not be removed or altered from any source distribution.
21
22function GZheader() {
23 /* true if compressed data believed to be text */
24 this.text = 0;
25 /* modification time */
26 this.time = 0;
27 /* extra flags (not used when writing a gzip file) */
28 this.xflags = 0;
29 /* operating system */
30 this.os = 0;
31 /* pointer to extra field or Z_NULL if none */
32 this.extra = null;
33 /* extra field length (valid if extra != Z_NULL) */
34 this.extra_len = 0; // Actually, we don't need it in JS,
35 // but leave for few code modifications
36
37 //
38 // Setup limits is not necessary because in js we should not preallocate memory
39 // for inflate use constant limit in 65536 bytes
40 //
41
42 /* space at extra (only when reading header) */
43 // this.extra_max = 0;
44 /* pointer to zero-terminated file name or Z_NULL */
45 this.name = '';
46 /* space at name (only when reading header) */
47 // this.name_max = 0;
48 /* pointer to zero-terminated comment or Z_NULL */
49 this.comment = '';
50 /* space at comment (only when reading header) */
51 // this.comm_max = 0;
52 /* true if there was or will be a header crc */
53 this.hcrc = 0;
54 /* true when done reading gzip header (not used when writing a gzip file) */
55 this.done = false;
56}
57
58module.exports = GZheader;
Note: See TracBrowser for help on using the repository browser.