crc32

external fun crc32(data: String, value: Number = definedExternally): Double(source)
external fun crc32(data: Buffer, value: Number = definedExternally): Double(source)
external fun crc32(data: ArrayBufferView<*>, value: Number = definedExternally): Double(source)

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.

Since

v22.2.0

Parameters

data

When data is a string, it will be encoded as UTF-8 before being used for computation.

value

An optional starting value. It must be a 32-bit unsigned integer. @default 0