All pages
Powered by GitBook
1 of 4

Loading...

Loading...

Loading...

Loading...

CRC32

Class in Yarn.Utility

Inherits from System.Object

Summary

Provides a method for generating CRC32 hashes of strings.

Methods

Name
Description

GetChecksum(byte[])

Computes a CRC32 checksum from the given bytes.

GetChecksum(string)

Computes a CRC32 checksum from the given string.

GetChecksumString(string)

Gets the CRC-32 hash of s as a string containing 8 lowercase hexadecimal characters.

GetChecksum(byte[])

Method in CRC32

Summary

Computes a CRC32 checksum from the given bytes.

Parameters

Name
Description

byte[] bytes

The bytes to generate a checksum for.

Returns

A CRC32 checksum derived from bytes .

GetChecksum(string)

Method in CRC32

Summary

Computes a CRC32 checksum from the given string.

Remarks

This method converts the string to a UTF-8 encoding, and then computes a CRC32 checksum from those bytes.

Parameters

Name
Description

string s

The string to generate a checksum for.

Returns

A CRC32 checksum derived from s .

GetChecksumString(string)

Method in CRC32

Summary

Gets the CRC-32 hash of s as a string containing 8 lowercase hexadecimal characters.

Remarks

This method converts the string to a UTF-8 encoding, and then computes a CRC32 checksum from those bytes.

Parameters

Name
Description

string s

The string to get the checksum of.

Returns

The string containing the checksum.

public static class CRC32
public static uint GetChecksum(byte[] bytes)
public static uint GetChecksum(string s)
public static string GetChecksumString(string s)