Computes a 32-bit Cyclic Redundancy Check checksum of data. If value is specified, it is used as the starting value of the checksum, otherwise, 0 is used as the starting value.
function
zlib.crc32
data: string | ArrayBufferView<ArrayBufferLike>,
value?: number
): number;
@param data
When data is a string, it will be encoded as UTF-8 before being used for computation.
@param value
An optional starting value. It must be a 32-bit unsigned integer.
@returns
A 32-bit unsigned integer containing the checksum.