CRC32c
Compute the CRC-32c checksum of the given , which can be an Array{UInt8}
, a contiguous subarray thereof, or a String
. Optionally, you can pass a starting crc
integer to be mixed in with the checksum. The crc
parameter can be used to compute a checksum on data divided into chunks: performing crc32c(data2, crc32c(data1))
is equivalent to the checksum of [data1; data2]
. (Technically, a little-endian checksum is computed.)
For a String
, note that the result is specific to the UTF-8 encoding (a different checksum would be obtained from a different Unicode encoding). To checksum an a::Array
of some other bitstype, you can do , but note that the result may be endian-dependent.
— Method
crc32c(io::IO, [nb::Integer,] crc::UInt32=0x00000000)