(crc, buf, len, pos)
| 18224 | |
| 18225 | |
| 18226 | function 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 | |
| 18240 | module.exports = crc32; |
no outgoing calls
no test coverage detected