define_crc.js 284 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = function (model, calc) {
  6. var fn = function fn(buf, previous) {
  7. return calc(buf, previous) >>> 0;
  8. };
  9. fn.signed = calc;
  10. fn.unsigned = fn;
  11. fn.model = model;
  12. return fn;
  13. };