MCPcopy Index your code
hub / github.com/nodejs/node / crc32

Function crc32

lib/zlib.js:967–975  ·  view source on GitHub ↗
(data, value = 0)

Source from the content-addressed store, hash-verified

965}
966
967function crc32(data, value = 0) {
968 if (typeof data !== 'string' && !isArrayBufferView(data)) {
969 throw new ERR_INVALID_ARG_TYPE('data', ['Buffer', 'TypedArray', 'DataView', 'string'], data);
970 }
971 validateUint32(value, 'value');
972 // Coerce -0 to +0.
973 value += 0;
974 return crc32Native(data, value);
975}
976
977// Legacy alias on the C++ wrapper object. This is not public API, so we may
978// want to runtime-deprecate it at some point. There's no hurry, though.

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…