Pardon our dust! Docs for Yarn Spinner for Unity 3.2 and Yarn Spinner for Godot C# are on docs.yarnspinner.dev (the old docs site). Docs for Yarn Spinner for Unity 3.3 (pre-release, out ASAP), Yarn Spinner for Godot GDScript and Yarn Spinner for Unreal Engine (work in progress) are on /docs/ (the new docs site).

CRC32

Provides a method for generating CRC32 hashes of strings.
public static class CRC32

Inherits 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

  • sstring
    The 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

  • sstring
    The 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.