GITLAB

Nattapon Wongpaet / Hospital

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • hospital
  • node_modules
  • crc
  • lib
  • define_crc.js
  • 33ead877   first code Browse Code ยป
    Nattapon Wongpaet
    2018-10-12 18:33:32 +0700  
define_crc.js 283 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
"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;
};