Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function crc32(_array, _prefix, _postfix) {
- // calculate the crc32 checksum
- return (function(_crcTable, _prefix, _initial, _postfix, _output) {
- var _crc,
- _byte,
- _counter,
- _result,
- _temp,
- _tableIndex = -1,
- _crcTable = [],
- _outputTable = [0, null],
- _intermediate = null,
- _crcChain = [_prefix]
- for (
- _byte = Math.min(_prefix.length, _initial), _counter = 0;
- _counter < _byte;
- ++_counter
- )
- _crcChain.push(_prefix[_counter])
- _crcChain.p = _postfix
- for (var _tempChain = []; ;) {
- // we'll look at what's in here in a minute
- }
- })(_crcTable, [], 0, _prefix, _postfix)
- }
Advertisement
Add Comment
Please, Sign In to add comment