From 4e87195739f2a5d9a05451b48773c8afdc680765 Mon Sep 17 00:00:00 2001 From: akiyamn Date: Sun, 24 Sep 2023 23:22:21 +1000 Subject: Initial commit (by create-cloudflare CLI) --- .../polyfills/zlib-lib/zstream.js | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 node_modules/rollup-plugin-node-polyfills/polyfills/zlib-lib/zstream.js (limited to 'node_modules/rollup-plugin-node-polyfills/polyfills/zlib-lib/zstream.js') diff --git a/node_modules/rollup-plugin-node-polyfills/polyfills/zlib-lib/zstream.js b/node_modules/rollup-plugin-node-polyfills/polyfills/zlib-lib/zstream.js new file mode 100644 index 0000000..c20e957 --- /dev/null +++ b/node_modules/rollup-plugin-node-polyfills/polyfills/zlib-lib/zstream.js @@ -0,0 +1,28 @@ + + +function ZStream() { + /* next input byte */ + this.input = null; // JS specific, because we have no pointers + this.next_in = 0; + /* number of bytes available at input */ + this.avail_in = 0; + /* total number of input bytes read so far */ + this.total_in = 0; + /* next output byte should be put there */ + this.output = null; // JS specific, because we have no pointers + this.next_out = 0; + /* remaining free space at output */ + 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*/; + /* not visible by applications */ + this.state = null; + /* best guess about the data type: binary or text */ + this.data_type = 2/*Z_UNKNOWN*/; + /* adler32 value of the uncompressed data */ + this.adler = 0; +} + +export default ZStream; -- cgit v1.2.3