RollingHash

Ecng.IO.Fossil

メソッド

Init
public void Init(Byte* z, int pos)
rollingHash.Init(z, pos)

Initialize the rolling hash using the first NHASH characters of z[].

Next
public void Next(byte c)
rollingHash.Next(c)

Advance the rolling hash by a single character.

Once
public static uint Once(byte[] z)
result = RollingHash.Once(z)

Compute a hash on NHASH bytes in a single call.

Value
public uint Value()
result = rollingHash.Value()

Return a 32-bit hash value.