wallet-core/node_modules/crc/lib/define_crc.js

16 lines
283 B
JavaScript
Raw Normal View History

2017-05-03 15:35:00 +02:00
"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;
};