source: trip-planner-front/node_modules/pako/lib/zlib/zstream.js@ b738035

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

initial commit

  • Property mode set to 100644
File size: 1.8 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 ZStream() {
23 /* next input byte */
24 this.input = null; // JS specific, because we have no pointers
25 this.next_in = 0;
26 /* number of bytes available at input */
27 this.avail_in = 0;
28 /* total number of input bytes read so far */
29 this.total_in = 0;
30 /* next output byte should be put there */
31 this.output = null; // JS specific, because we have no pointers
32 this.next_out = 0;
33 /* remaining free space at output */
34 this.avail_out = 0;
35 /* total number of bytes output so far */
36 this.total_out = 0;
37 /* last error message, NULL if no error */
38 this.msg = ''/*Z_NULL*/;
39 /* not visible by applications */
40 this.state = null;
41 /* best guess about the data type: binary or text */
42 this.data_type = 2/*Z_UNKNOWN*/;
43 /* adler32 value of the uncompressed data */
44 this.adler = 0;
45}
46
47module.exports = ZStream;
Note: See TracBrowser for help on using the repository browser.