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

8 lines
222 B
JavaScript

'use strict';
const deflateSync = require('zlibjs').deflateSync;
exports.run = (data, level) => {
// Compression levels not supported. Use unknown defaults always
return deflateSync(data.typed, { level: level });
};