How to use the crc-32.bstr function in crc-32

To help you get started, we’ve selected a few crc-32 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SheetJS / js-crc32 / misc / integration.js View on Github external
function z5(bstr) { return js_crc32_old.bstr(bstr); }
github SheetJS / js-crc32 / perf / bstr.js View on Github external
function check(foobar) {
	var baseline = old(foobar);
	assert.equal(baseline, sheetjs1(foobar));
	assert.equal(baseline, sheetjs2(foobar));
	assert.equal(baseline, sheetjs3(foobar));
	assert.equal(baseline, sheetjs8(foobar));
	assert.equal(baseline, sheetjsB(foobar));
	assert.equal(baseline, cur(foobar));
	if(i < 100) assert.equal(baseline, node_crc32(foobar));
}
github SheetJS / js-crc32 / perf / bstr.js View on Github external
suite.add('last vers', function() { for(var j = 0; j !== w; j+=100) old(b[j]); });
suite.add('current v', function() { for(var j = 0; j !== w; j+=100) cur(b[j]); });

crc-32

Pure-JS CRC-32

Apache-2.0
Latest version published 2 years ago

Package Health Score

70 / 100
Full package analysis

Popular crc-32 functions