C# Class Hpdi.HashLib.Crc16

16-bit CRC hash function.
Inheritance: Hash16
ファイルを表示 Open project: abevoelker/vss2git Class Usage Examples

Public Methods

Method Description
Compute ( byte bytes ) : ushort
Compute ( byte bytes, int offset, int limit ) : ushort
Crc16 ( ushort poly, bool reverse )
Crc16 ( ushort poly, bool reverse, ushort initial, ushort final )

Protected Methods

Method Description
GenerateTable ( ushort poly, bool reverse ) : ushort[]

Method Details

Compute() public method

public Compute ( byte bytes ) : ushort
bytes byte
return ushort

Compute() public method

public Compute ( byte bytes, int offset, int limit ) : ushort
bytes byte
offset int
limit int
return ushort

Crc16() public method

public Crc16 ( ushort poly, bool reverse )
poly ushort
reverse bool

Crc16() public method

public Crc16 ( ushort poly, bool reverse, ushort initial, ushort final )
poly ushort
reverse bool
initial ushort
final ushort

GenerateTable() protected static method

protected static GenerateTable ( ushort poly, bool reverse ) : ushort[]
poly ushort
reverse bool
return ushort[]