C# Class OpenRA.FileFormats.CRC32

Static class that uses a lookup table to calculates CRC32 checksums of input strings.
Datei anzeigen Open project: pchote/OpenRA

Public Methods

Method Description
Calculate ( byte data ) : uint
Calculate ( byte data, uint polynomial ) : uint

A fast (native) CRC32 implementation that can be used on a regular byte arrays.

Calculate ( byte data, uint len, uint polynomial ) : uint

A fast (native) CRC32 implementation that can be used on a pinned byte array using default polynomial.

Method Details

Calculate() public static method

public static Calculate ( byte data ) : uint
data byte
return uint

Calculate() public static method

A fast (native) CRC32 implementation that can be used on a regular byte arrays.
public static Calculate ( byte data, uint polynomial ) : uint
data byte The data from which to calculate the checksum.
polynomial uint The polynomial.
return uint

Calculate() public static method

A fast (native) CRC32 implementation that can be used on a pinned byte array using default polynomial.
public static Calculate ( byte data, uint len, uint polynomial ) : uint
data byte [in,out] If non-null, the.
len uint The length of the data.
polynomial uint The polynomial to XOR with.
return uint