line_push/node_modules/crc/lib/es6/define_crc.js
2022-07-18 02:50:52 +00:00

17 lines
284 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (model, calc) {
var fn = function fn(buf, previous) {
return calc(buf, previous) >>> 0;
};
fn.signed = calc;
fn.unsigned = fn;
fn.model = model;
return fn;
};