aboutsummaryrefslogtreecommitdiff
path: root/node_modules/crc/lib/define_crc.js
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-21 06:40:43 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-21 06:40:43 +0000
commit39ef1b6fd37bb9b725676d3a98f13e3450798200 (patch)
treeeeec60d5b56e5c69a3ba251d98a27f4684d47066 /node_modules/crc/lib/define_crc.js
parentee8e1a13b60a6adfdc691b2a9b57289188397641 (diff)
parent76757d227f64e35a093d47facc260d9266e2bf38 (diff)
MERGED
Diffstat (limited to 'node_modules/crc/lib/define_crc.js')
-rw-r--r--node_modules/crc/lib/define_crc.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/node_modules/crc/lib/define_crc.js b/node_modules/crc/lib/define_crc.js
new file mode 100644
index 0000000..70c3bdc
--- /dev/null
+++ b/node_modules/crc/lib/define_crc.js
@@ -0,0 +1,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;
+}; \ No newline at end of file