Murmur3Hash32

Namespace: SnowBank.IO.Hashing · class

Computes a 32-bit "Murmur3" hash

Remarks

IMPORTANT: This hash is NOT cryptographic! It can leak information about the hashed data, and must therefore not be used publicly in a data-protection scenario! (you should rather use SHA or HMAC for that kind of thing)

Methods

Continue

static uint Continue(uint hash, byte[] bytes)

static uint Continue(uint hash, ReadOnlySpan<byte> bytes)

static uint Continue(uint hash, Slice buffer)

ContinueUnsafe

static uint ContinueUnsafe(uint hash, Byte* bytes, int count)

FromBytes

static uint FromBytes(byte[] bytes)

static uint FromBytes(ReadOnlySpan<byte> bytes)

static uint FromBytes(Slice bytes)

FromBytesUnsafe

static uint FromBytesUnsafe(Byte* bytes, int count)

GetHashCode

static int GetHashCode(byte[] bytes)

static int GetHashCode(Slice bytes)

static int GetHashCode(ReadOnlySpan<byte> bytes)