Source/NFX/IO/ErrorHandling/CRC32.cs
/// <summary>
/// Computes CRC32 for binary string representation (in-memory)
/// </summary>
Computes CRC32 for binary string representation (in-memory)
Computes CRC32 for binary string representation ( in - memory )
public static uint ForString(string text)
      {
        if (text.IsNullOrWhiteSpace()) return 0;
        var crc = new CRC32();
        for(var i=0; i<text.Length; i++)
          crc.Add( text[i] );
        return crc.m_CRC;
      }
public static uint ForString ( string text ) { if ( text . IsNullOrWhiteSpace ( ) ) return 0 ; var crc = new CRC32 ( ) ; for ( var i = 0 ; i < text . Length ; i ++ ) crc . Add ( text [ i ] ) ; return crc . m_CRC ; }
Computes CRC32 for binary string representation (in-memory)
Computes CRC32 for binary string representation ( in - memory )
text
string