16 lines
283 B
JavaScript
16 lines
283 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;
|
|
}; |