CRC32
Provides a method for generating CRC32 hashes of strings.
public static class CRC32Inherits from System.Object
#Methods
#GetChecksum(byte[])
Computes a CRC32 checksum from the given bytes.
public static uint GetChecksum(byte[] bytes)Parameters
bytesbyte[]The bytes to generate a checksum for.
Returns UInt32: A CRC32 checksum derived from bytes.
#GetChecksum(string)
Computes a CRC32 checksum from the given string.
public static uint GetChecksum(string s)Parameters
sstringThe string to generate a checksum for.
Returns UInt32: A CRC32 checksum derived from s.
This method converts the string to a UTF-8 encoding, and then
computes a CRC32 checksum from those bytes.
#GetChecksumString(string)
Gets the CRC-32 hash of
s as a string
containing 8 lowercase hexadecimal characters.public static string GetChecksumString(string s)Parameters
sstringThe string to get the checksum of.
Returns String: The string containing the checksum.
This method converts the string to a UTF-8 encoding, and then
computes a CRC32 checksum from those bytes.
Generated from Yarn Spinner for Unity 3.3.