C# Class Kafka.Client.Utils.Crc32Hasher

From http://damieng.com/blog/2006/08/08/calculating_crc32_in_c_and_net
Inheritance: System.Security.Cryptography.HashAlgorithm
ファイルを表示 Open project: precog/kafka Class Usage Examples

Public Methods

Method Description
Compute ( byte bytes ) : byte[]
Crc32Hasher ( ) : System
Crc32Hasher ( UInt32 polynomial, UInt32 seed ) : System
Initialize ( ) : void

Protected Methods

Method Description
HashCore ( byte buffer, int start, int length ) : void
HashFinal ( ) : byte[]

Private Methods

Method Description
CalculateHash ( UInt32 table, UInt32 seed, byte buffer, int start, int size ) : UInt32
InitializeTable ( UInt32 polynomial ) : System.UInt32[]
UInt32ToBigEndianBytes ( UInt32 x ) : byte[]

Method Details

Compute() public static method

public static Compute ( byte bytes ) : byte[]
bytes byte
return byte[]

Crc32Hasher() public method

public Crc32Hasher ( ) : System
return System

Crc32Hasher() public method

public Crc32Hasher ( UInt32 polynomial, UInt32 seed ) : System
polynomial System.UInt32
seed System.UInt32
return System

HashCore() protected method

protected HashCore ( byte buffer, int start, int length ) : void
buffer byte
start int
length int
return void

HashFinal() protected method

protected HashFinal ( ) : byte[]
return byte[]

Initialize() public method

public Initialize ( ) : void
return void