{"action":"created","issue":{"url":"https://api.github.com/repos/SheetJS/js-crc32/issues/8","repository_url":"https://api.github.com/repos/SheetJS/js-crc32","labels_url":"https://api.github.com/repos/SheetJS/js-crc32/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/SheetJS/js-crc32/issues/8/comments","events_url":"https://api.github.com/repos/SheetJS/js-crc32/issues/8/events","html_url":"https://github.com/SheetJS/js-crc32/issues/8","id":222235222,"number":8,"title":"crc-32 not working for >5Gb file . Support for large files","user":{"login":"idnesh","id":12198038,"avatar_url":"https://avatars2.githubusercontent.com/u/12198038?v=3","gravatar_id":"","url":"https://api.github.com/users/idnesh","html_url":"https://github.com/idnesh","followers_url":"https://api.github.com/users/idnesh/followers","following_url":"https://api.github.com/users/idnesh/following{/other_user}","gists_url":"https://api.github.com/users/idnesh/gists{/gist_id}","starred_url":"https://api.github.com/users/idnesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idnesh/subscriptions","organizations_url":"https://api.github.com/users/idnesh/orgs","repos_url":"https://api.github.com/users/idnesh/repos","events_url":"https://api.github.com/users/idnesh/events{/privacy}","received_events_url":"https://api.github.com/users/idnesh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-04-17T21:21:41Z","updated_at":"2017-04-27T22:00:53Z","closed_at":"2017-04-27T22:00:53Z","body":"I was able to calculate the crc-32 using this for smaller files. However, for larger files, it is unable to calculate the crc-32 value. I was trying to calculate using 5 GB file."},"comment":{"url":"https://api.github.com/repos/SheetJS/js-crc32/issues/comments/297851288","html_url":"https://github.com/SheetJS/js-crc32/issues/8#issuecomment-297851288","issue_url":"https://api.github.com/repos/SheetJS/js-crc32/issues/8","id":297851288,"user":{"login":"SheetJSDev","id":6070939,"avatar_url":"https://avatars2.githubusercontent.com/u/6070939?v=3","gravatar_id":"","url":"https://api.github.com/users/SheetJSDev","html_url":"https://github.com/SheetJSDev","followers_url":"https://api.github.com/users/SheetJSDev/followers","following_url":"https://api.github.com/users/SheetJSDev/following{/other_user}","gists_url":"https://api.github.com/users/SheetJSDev/gists{/gist_id}","starred_url":"https://api.github.com/users/SheetJSDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SheetJSDev/subscriptions","organizations_url":"https://api.github.com/users/SheetJSDev/orgs","repos_url":"https://api.github.com/users/SheetJSDev/repos","events_url":"https://api.github.com/users/SheetJSDev/events{/privacy}","received_events_url":"https://api.github.com/users/SheetJSDev/received_events","type":"User","site_admin":false},"created_at":"2017-04-27T22:00:53Z","updated_at":"2017-04-27T22:00:53Z","body":"@idnesh I tested against larger files and it appears to work correctly.  A new web demo http://oss.sheetjs.com/js-crc32/large.html now reads the data by chunks.  Using the IE8 Win7 Modern.IE VMware VM:\r\n\r\nhttps://az412801.vo.msecnd.net/vhd/VMBuild_20141027/VMware/IE8/Windows/IE8.Win7.For.Windows.VMware.zip\r\n\r\nYou can verify against the webpage:\r\n\r\n<img width=\"179\" alt=\"crc32vm\" src=\"https://cloud.githubusercontent.com/assets/6070939/25505862/c4156752-2b71-11e7-895b-de00c0a6ead8.png\">\r\n\r\nand the command line tool:\r\n\r\n```bash\r\n## using the 1.0.2 version of the command line tool \r\n$ crc32 IE8.Win7.For.Windows.VMware.zip\r\n1891069052\r\n## using the OSX built-in cksum command\r\n$ cksum -o 3 ~/Downloads/IE8.Win7.For.Windows.VMware.zip\r\n1891069052 4161613172 ...\r\n```\r\n\r\nKeep in mind that the result is a **signed 32 bit integer**, and that may differ from your expectations if you are dealing with unsigned values.  To convert to unsigned, just use `crc >>> 0` -- [the demo performs that shift to show unsigned](https://github.com/SheetJS/js-crc32/blob/master/demo/worker.flow.js#L19-L21)"}}
{"actor":{"display_login":"SheetJSDev"}}