|
| 1 | +import zlib from "node:zlib"; |
| 2 | + |
| 3 | +export const bytesWrittenImpl = (s) => s.bytesWritten; |
| 4 | + |
| 5 | +export const createBrotliCompress = () => zlib.createBrotliCompress(); |
| 6 | +export const createBrotliCompressCbImpl = (opts) => zlib.createBrotliCompress(opts); |
| 7 | +export const createBrotliDecompress = () => zlib.createBrotliDecompress(); |
| 8 | +export const createBrotliDecompressCbImpl = (opts) => zlib.createBrotliDecompress(opts); |
| 9 | + |
| 10 | +export const createDeflateRaw = () => zlib.createDeflateRaw(); |
| 11 | +export const createDeflateRawCbImpl = (opts) => zlib.createDeflateRaw(opts); |
| 12 | +export const createDeflate = () => zlib.createDeflate(); |
| 13 | +export const createDeflateCbImpl = (opts) => zlib.createDeflate(opts); |
| 14 | +export const createGzip = () => zlib.createGzip(); |
| 15 | +export const createGzipCbImpl = (opts) => zlib.createGzip(opts); |
| 16 | + |
| 17 | +export const createInflateRaw = () => zlib.createInflateRaw(); |
| 18 | +export const createInflateRawCbImpl = (opts) => zlib.createInflateRaw(opts); |
| 19 | +export const createInflate = () => zlib.createInflate(); |
| 20 | +export const createInflateCbImpl = (opts) => zlib.createInflate(opts); |
| 21 | +export const createGunzip = () => zlib.createGunzip(); |
| 22 | +export const createGunzipCbImpl = (opts) => zlib.createGunzip(opts); |
| 23 | + |
| 24 | +export const createUnzip = () => zlib.createUnzip(); |
| 25 | +export const createUnzipCbImpl = (opts) => zlib.createUnzip(opts); |
| 26 | + |
| 27 | +export const brotliCompressSyncImpl = (buf) => zlib.brotliCompressSync(buf); |
| 28 | +export const brotliCompressSyncOptsImpl = (buf, opts) => zlib.brotliCompressSync(buf, opts); |
| 29 | +export const brotliCompressImpl = (buf, cb) => zlib.brotliCompress(buf, cb); |
| 30 | +export const brotliCompressCbImpl = (buf, opts, cb) => zlib.brotliCompress(buf, opts, cb); |
| 31 | + |
| 32 | +export const brotliDecompressSyncImpl = (buf) => zlib.brotliDecompressSync(buf); |
| 33 | +export const brotliDecompressSyncOptsImpl = (buf, opts) => zlib.brotliDecompressSync(buf, opts); |
| 34 | +export const brotliDecompressImpl = (buf, cb) => zlib.brotliDecompress(buf, cb); |
| 35 | +export const brotliDecompressCbImpl = (buf, opts, cb) => zlib.brotliDecompress(buf, opts, cb); |
| 36 | + |
| 37 | +export const deflateRawSyncImpl = (buf) => zlib.deflateRawSync(buf); |
| 38 | +export const deflateRawSyncOptsImpl = (buf, opts) => zlib.deflateRawSync(buf, opts); |
| 39 | +export const deflateRawImpl = (buf, cb) => zlib.deflateRaw(buf, cb); |
| 40 | +export const deflateRawCbImpl = (buf, opts, cb) => zlib.deflateRaw(buf, opts, cb); |
| 41 | + |
| 42 | +export const deflateSyncImpl = (buf) => zlib.deflateSync(buf); |
| 43 | +export const deflateSyncOptsImpl = (buf, opts) => zlib.deflateSync(buf, opts); |
| 44 | +export const deflateImpl = (buf, cb) => zlib.deflate(buf, cb); |
| 45 | +export const deflateCbImpl = (buf, opts, cb) => zlib.deflate(buf, opts, cb); |
| 46 | + |
| 47 | +export const gzipSyncImpl = (buf) => zlib.gzipSync(buf); |
| 48 | +export const gzipSyncOptsImpl = (buf, opts) => zlib.gzipSync(buf, opts); |
| 49 | +export const gzipImpl = (buf, cb) => zlib.gzip(buf, cb); |
| 50 | +export const gzipCbImpl = (buf, opts, cb) => zlib.gzip(buf, opts, cb); |
| 51 | + |
| 52 | +export const inflateRawSyncImpl = (buf) => zlib.inflateRawSync(buf); |
| 53 | +export const inflateRawSyncOptsImpl = (buf, opts) => zlib.inflateRawSync(buf, opts); |
| 54 | +export const inflateRawImpl = (buf, cb) => zlib.inflateRaw(buf, cb); |
| 55 | +export const inflateRawCbImpl = (buf, opts, cb) => zlib.inflateRaw(buf, opts, cb); |
| 56 | + |
| 57 | +export const inflateSyncImpl = (buf) => zlib.inflateSync(buf); |
| 58 | +export const inflateSyncOptsImpl = (buf, opts) => zlib.inflateSync(buf, opts); |
| 59 | +export const inflateImpl = (buf, cb) => zlib.inflate(buf, cb); |
| 60 | +export const inflateCbImpl = (buf, opts, cb) => zlib.inflate(buf, opts, cb); |
| 61 | + |
| 62 | +export const gunzipSyncImpl = (buf) => zlib.gunzipSync(buf); |
| 63 | +export const gunzipSyncOptsImpl = (buf, opts) => zlib.gunzipSync(buf, opts); |
| 64 | +export const gunzipImpl = (buf, cb) => zlib.gunzip(buf, cb); |
| 65 | +export const gunzipCbImpl = (buf, opts, cb) => zlib.gunzip(buf, opts, cb); |
| 66 | + |
| 67 | +export const unzipSyncImpl = (buf) => zlib.unzipSync(buf); |
| 68 | +export const unzipSyncOptsImpl = (buf, opts) => zlib.unzipSync(buf, opts); |
| 69 | +export const unzipImpl = (buf, cb) => zlib.unzip(buf, cb); |
| 70 | +export const unzipCbImpl = (buf, opts, cb) => zlib.unzip(buf, opts, cb); |
0 commit comments