Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80549 views
1
'use strict';
2
3
4
function ZStream() {
5
/* next input byte */
6
this.input = null; // JS specific, because we have no pointers
7
this.next_in = 0;
8
/* number of bytes available at input */
9
this.avail_in = 0;
10
/* total number of input bytes read so far */
11
this.total_in = 0;
12
/* next output byte should be put there */
13
this.output = null; // JS specific, because we have no pointers
14
this.next_out = 0;
15
/* remaining free space at output */
16
this.avail_out = 0;
17
/* total number of bytes output so far */
18
this.total_out = 0;
19
/* last error message, NULL if no error */
20
this.msg = ''/*Z_NULL*/;
21
/* not visible by applications */
22
this.state = null;
23
/* best guess about the data type: binary or text */
24
this.data_type = 2/*Z_UNKNOWN*/;
25
/* adler32 value of the uncompressed data */
26
this.adler = 0;
27
}
28
29
module.exports = ZStream;
30