C# Класс nHydrate.Generator.Common.Util.CRC32HashAlgorithm

Наследование: System.Security.Cryptography.HashAlgorithm
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
AllOnes uint
autoCache bool
cachedCRC32Tables System.Collections.Hashtable
crc32Table uint[]

Открытые методы

Метод Описание
CRC32HashAlgorithm ( uint aPolynomial ) : System.Collections

Creates a CRC32HashAlgorithm object using the specified Creates a CRC32HashAlgorithm object

CRC32HashAlgorithm ( uint aPolynomial, bool cacheTable ) : System.Collections

Construct the

ClearCache ( ) : void
ComputeHash ( Stream inputStream ) : byte[]

Computes the hash value for the specified Stream.

ComputeHash ( byte buffer ) : byte[]

Overloaded. Computes the hash value for the input data.

ComputeHash ( byte buffer, int offset, int count ) : byte[]

Overloaded. Computes the hash value for the input data.

ComputeHash ( string s ) : byte[]

Overloaded. Computes the hash value for the input data.

Initialize ( ) : void

Initializes an implementation of HashAlgorithm.

Защищенные методы

Метод Описание
BuildCRC32Table ( uint ulPolynomial ) : uint[]

Builds a crc32 table given a polynomial

HashCore ( byte buffer, int offset, int count ) : void

HashFinal ( ) : byte[]

Приватные методы

Метод Описание
CRC32HashAlgorithm ( ) : System.Collections

Initialize the cache

Описание методов

BuildCRC32Table() защищенный статический Метод

Builds a crc32 table given a polynomial
protected static BuildCRC32Table ( uint ulPolynomial ) : uint[]
ulPolynomial uint
Результат uint[]

CRC32HashAlgorithm() публичный Метод

Creates a CRC32HashAlgorithm object using the specified Creates a CRC32HashAlgorithm object
public CRC32HashAlgorithm ( uint aPolynomial ) : System.Collections
aPolynomial uint
Результат System.Collections

CRC32HashAlgorithm() публичный Метод

Construct the
public CRC32HashAlgorithm ( uint aPolynomial, bool cacheTable ) : System.Collections
aPolynomial uint
cacheTable bool
Результат System.Collections

ClearCache() публичный статический Метод

public static ClearCache ( ) : void
Результат void

ComputeHash() публичный Метод

Computes the hash value for the specified Stream.
public ComputeHash ( Stream inputStream ) : byte[]
inputStream System.IO.Stream
Результат byte[]

ComputeHash() публичный Метод

Overloaded. Computes the hash value for the input data.
public ComputeHash ( byte buffer ) : byte[]
buffer byte
Результат byte[]

ComputeHash() публичный Метод

Overloaded. Computes the hash value for the input data.
public ComputeHash ( byte buffer, int offset, int count ) : byte[]
buffer byte
offset int
count int
Результат byte[]

ComputeHash() публичный Метод

Overloaded. Computes the hash value for the input data.
public ComputeHash ( string s ) : byte[]
s string
Результат byte[]

HashCore() защищенный Метод

protected HashCore ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Результат void

HashFinal() защищенный Метод

protected HashFinal ( ) : byte[]
Результат byte[]

Initialize() публичный Метод

Initializes an implementation of HashAlgorithm.
public Initialize ( ) : void
Результат void

Описание свойств

AllOnes защищенное статическое свойство

protected static uint AllOnes
Результат uint

autoCache защищенное статическое свойство

protected static bool autoCache
Результат bool

cachedCRC32Tables защищенное статическое свойство

protected static Hashtable,System.Collections cachedCRC32Tables
Результат System.Collections.Hashtable

crc32Table защищенное свойство

protected uint[] crc32Table
Результат uint[]