rbxts-pako/benchmark/implementations/deflate-zlib/index.js
2020-11-08 22:23:56 +03:00

7 lines
132 B
JavaScript

'use strict';
const zlib = require('zlib');
exports.run = (data, level) => {
zlib.deflateSync(data.buffer, { level:level });
};