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