MCPcopy Create free account
hub / github.com/TruthHun/BookStack / crc32

Function crc32

static/word2md/mammoth.browser.js:18226–18237  ·  view source on GitHub ↗
(crc, buf, len, pos)

Source from the content-addressed store, hash-verified

18224
18225
18226function crc32(crc, buf, len, pos) {
18227 var t = crcTable,
18228 end = pos + len;
18229
18230 crc ^= -1;
18231
18232 for (var i = pos; i < end; i++) {
18233 crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];
18234 }
18235
18236 return (crc ^ (-1)); // >>> 0;
18237}
18238
18239
18240module.exports = crc32;

Callers 6

generateZipPartsFunction · 0.70
mammoth.browser.jsFile · 0.70
read_bufFunction · 0.70
deflateFunction · 0.70
inflateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected