Guest User

Untitled

a guest
Jan 9th, 2023
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. function crc32(_array, _prefix, _postfix) {
  2. // calculate the crc32 checksum
  3. return (function(_crcTable, _prefix, _initial, _postfix, _output) {
  4. var _crc,
  5. _byte,
  6. _counter,
  7. _result,
  8. _temp,
  9. _tableIndex = -1,
  10. _crcTable = [],
  11. _outputTable = [0, null],
  12. _intermediate = null,
  13. _crcChain = [_prefix]
  14. for (
  15. _byte = Math.min(_prefix.length, _initial), _counter = 0;
  16. _counter < _byte;
  17. ++_counter
  18. )
  19. _crcChain.push(_prefix[_counter])
  20. _crcChain.p = _postfix
  21. for (var _tempChain = []; ;) {
  22. // we'll look at what's in here in a minute
  23. }
  24. })(_crcTable, [], 0, _prefix, _postfix)
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment