pako/lib/zlib/zstream.js

30 wiersze
851 B
JavaScript
Czysty Zwykły widok Historia

'use strict';
2014-02-03 01:35:24 +00:00
function ZStream() {
/* next input byte */
2014-04-17 22:56:41 +00:00
this.input = null; // JS specific, because we have no pointers
this.next_in = 0;
/* number of bytes available at input */
2014-02-03 01:35:24 +00:00
this.avail_in = 0;
/* total number of input bytes read so far */
this.total_in = 0;
/* next output byte should be put there */
2014-04-17 22:56:41 +00:00
this.output = null; // JS specific, because we have no pointers
this.next_out = 0;
/* remaining free space at output */
2014-02-03 01:35:24 +00:00
this.avail_out = 0;
/* total number of bytes output so far */
this.total_out = 0;
/* last error message, NULL if no error */
this.msg = ''/*Z_NULL*/;
2014-02-03 01:35:24 +00:00
/* not visible by applications */
2014-02-21 07:42:42 +00:00
this.state = null;
2014-02-03 01:35:24 +00:00
/* best guess about the data type: binary or text */
this.data_type = 2/*Z_UNKNOWN*/;
2014-02-03 01:35:24 +00:00
/* adler32 value of the uncompressed data */
this.adler = 0;
}
module.exports = ZStream;