C# Class Hpdi.HashLib.Crc16

16-bit CRC hash function.
Inheritance: Hash16
Afficher le fichier Open project: abevoelker/vss2git Class Usage Examples

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode Description
GenerateTable ( ushort poly, bool reverse ) : ushort[]

Method Details

Compute() public méthode

public Compute ( byte bytes ) : ushort
bytes byte
Résultat ushort

Compute() public méthode

public Compute ( byte bytes, int offset, int limit ) : ushort
bytes byte
offset int
limit int
Résultat ushort

Crc16() public méthode

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

Crc16() public méthode

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

GenerateTable() protected static méthode

protected static GenerateTable ( ushort poly, bool reverse ) : ushort[]
poly ushort
reverse bool
Résultat ushort[]