Crc32.Compute C# (CSharp) Method

Compute() public static method

public static Compute ( UInt32 polynomial, UInt32 seed, byte buffer ) : UInt32
polynomial System.UInt32
seed System.UInt32
buffer byte
return System.UInt32
    public static UInt32 Compute(UInt32 polynomial, UInt32 seed, byte[] buffer)
    {
        return ~CalculateHash(InitializeTable(polynomial), seed, buffer, 0, buffer.Length);
    }

Same methods

Crc32::Compute ( UInt32 seed, byte buffer ) : UInt32
Crc32::Compute ( byte buffer ) : UInt32

Usage Example

Example #1
0
        public static void AddAnimHash(string name, ref Dictionary <uint, string> dict)
        {
            uint crc = Crc32.Compute(name.ToLower());

            if (dict.ContainsValue(name) || dict.ContainsKey(crc))
            {
                return;
            }

            dict.Add(crc, name);
        }
All Usage Examples Of Crc32::Compute