Exemplo n.º 1
0
 /// <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)));
 }
Exemplo n.º 2
0
 /// <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)));
 }
Exemplo n.º 3
0
 /// <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)));
 }