| 1 | export default function ZStream() { |
| 2 | /* next input byte */ |
| 3 | this.input = null; // JS specific, because we have no pointers |
| 4 | this.next_in = 0; |
| 5 | /* number of bytes available at input */ |
| 6 | this.avail_in = 0; |
| 7 | /* total number of input bytes read so far */ |
| 8 | this.total_in = 0; |
| 9 | /* next output byte should be put there */ |
| 10 | this.output = null; // JS specific, because we have no pointers |
| 11 | this.next_out = 0; |
| 12 | /* remaining free space at output */ |
| 13 | this.avail_out = 0; |
| 14 | /* total number of bytes output so far */ |
| 15 | this.total_out = 0; |
| 16 | /* last error message, NULL if no error */ |
| 17 | this.msg = ''/*Z_NULL*/; |
| 18 | /* not visible by applications */ |
| 19 | this.state = null; |
| 20 | /* best guess about the data type: binary or text */ |
| 21 | this.data_type = 2/*Z_UNKNOWN*/; |
| 22 | /* adler32 value of the uncompressed data */ |
| 23 | this.adler = 0; |
| 24 | } |