コード例 #1
0
ファイル: Crc32.cs プロジェクト: mvondracek/NetfoxDetective
 /// <summary>Computes the CRC32 value for the given ASCII string using the <see cref="DefaultPolynomial" />.</summary>
 public static int Compute(string asciiString)
 {
     _defaultCRC.Initialize();
     return(ToInt32(_defaultCRC.ComputeHash(asciiString)));
 }
コード例 #2
0
ファイル: Crc32.cs プロジェクト: Lithiot/Multiplayer
 /// <summary>Computes the hash value for the input data using the <see cref="DefaultPolynomial" />.</summary>
 public static int Compute(byte[] buffer, int offset, int count)
 {
     DefaultCRC.Initialize();
     return(ToInt32(DefaultCRC.ComputeHash(buffer, offset, count)));
 }
コード例 #3
0
ファイル: Crc32.cs プロジェクト: radioegor146/Packet.Net
 /// <summary>Computes the CRC32 value for the given ASCII string using the <see cref="DefaultPolynomial" />.</summary>
 public static Int32 Compute(String asciiString)
 {
     DefaultCRC.Initialize();
     return(ToInt32(DefaultCRC.ComputeHash(asciiString)));
 }