(ctor, sync)
| 784 | ObjectSetPrototypeOf(Unzip, Zlib); |
| 785 | |
| 786 | function createConvenienceMethod(ctor, sync) { |
| 787 | if (sync) { |
| 788 | return function syncBufferWrapper(buffer, opts) { |
| 789 | return zlibBufferSync(new ctor(opts), buffer); |
| 790 | }; |
| 791 | } |
| 792 | return function asyncBufferWrapper(buffer, opts, callback) { |
| 793 | if (typeof opts === 'function') { |
| 794 | callback = opts; |
| 795 | opts = {}; |
| 796 | } |
| 797 | return zlibBuffer(new ctor(opts), buffer, callback); |
| 798 | }; |
| 799 | } |
| 800 | |
| 801 | const kMaxBrotliParam = MathMax( |
| 802 | ...ObjectEntries(constants) |
no test coverage detected
searching dependent graphs…