C# Class MonoGame.Utilities.Hash

Mostra file Open project: procfxgen/MGShaderEditor

Public Methods

Method Description
ComputeHash ( ) : int

Compute a hash from a byte array.

Modified FNV Hash in C# http://stackoverflow.com/a/468084

ComputeHash ( Stream stream ) : int

Compute a hash from the content of a stream and restore the position.

Modified FNV Hash in C# http://stackoverflow.com/a/468084

Method Details

ComputeHash() public static method

Compute a hash from a byte array.
Modified FNV Hash in C# http://stackoverflow.com/a/468084
public static ComputeHash ( ) : int
return int

ComputeHash() public static method

Compute a hash from the content of a stream and restore the position.
Modified FNV Hash in C# http://stackoverflow.com/a/468084
public static ComputeHash ( Stream stream ) : int
stream System.IO.Stream
return int