define_crc.js 174 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 export default function(model, calc) { const fn = (buf, previous) => calc(buf, previous) >>> 0; fn.signed = calc; fn.unsigned = fn; fn.model = model; return fn; }