Class Hashing
Inheritance
System.Object
Hashing
Namespace: Aximo
Assembly: AxCommon.dll
Syntax
public static class Hashing
Methods
|
Improve this Doc
View Source
Combine2IntToInt64(Int32, Int32)
Declaration
public static long Combine2IntToInt64(int high, int low)
Parameters
| Type |
Name |
Description |
| System.Int32 |
high |
|
| System.Int32 |
low |
|
Returns
| Type |
Description |
| System.Int64 |
|
|
Improve this Doc
View Source
Combine2IntToInt64(UInt32, UInt32)
Declaration
public static ulong Combine2IntToInt64(uint high, uint low)
Parameters
| Type |
Name |
Description |
| System.UInt32 |
high |
|
| System.UInt32 |
low |
|
Returns
| Type |
Description |
| System.UInt64 |
|
|
Improve this Doc
View Source
FNV32(Byte[])
Declaration
public static int FNV32(params byte[] data)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
data |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
FNV32(Char[])
Declaration
public static int FNV32(params char[] data)
Parameters
| Type |
Name |
Description |
| System.Char[] |
data |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
FNV32(Memory<Byte>)
Declaration
public static int FNV32(Memory<byte> data)
Parameters
| Type |
Name |
Description |
| System.Memory<System.Byte> |
data |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
FNV32(Span<Byte>)
Declaration
public static int FNV32(Span<byte> data)
Parameters
| Type |
Name |
Description |
| System.Span<System.Byte> |
data |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
FNV32(String)
Declaration
public static int FNV32(string data)
Parameters
| Type |
Name |
Description |
| System.String |
data |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
FNV32<T>(Memory<T>)
Declaration
public static int FNV32<T>(Memory<T> data)
where T : struct
Parameters
| Type |
Name |
Description |
| System.Memory<T> |
data |
|
Returns
| Type |
Description |
| System.Int32 |
|
Type Parameters
|
Improve this Doc
View Source
FNV32<T>(Span<T>)
Declaration
public static int FNV32<T>(Span<T> data)
where T : struct
Parameters
| Type |
Name |
Description |
| System.Span<T> |
data |
|
Returns
| Type |
Description |
| System.Int32 |
|
Type Parameters
|
Improve this Doc
View Source
GetRandomNumberOfInteger(Int32)
Declaration
public static int GetRandomNumberOfInteger(int value)
Parameters
| Type |
Name |
Description |
| System.Int32 |
value |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
GetRandomNumberOfInteger(Int32, Int32)
Declaration
public static int GetRandomNumberOfInteger(int value, int version)
Parameters
| Type |
Name |
Description |
| System.Int32 |
value |
|
| System.Int32 |
version |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
GetRandomNumberOfInteger(Int32, Int32, Int32)
Declaration
public static int GetRandomNumberOfInteger(int value, int version, int maxValue)
Parameters
| Type |
Name |
Description |
| System.Int32 |
value |
|
| System.Int32 |
version |
|
| System.Int32 |
maxValue |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
GetRandomNumberOfInteger(Int32, Int32, Int32, Int32)
Declaration
public static int GetRandomNumberOfInteger(int value, int version, int minValue, int maxValue)
Parameters
| Type |
Name |
Description |
| System.Int32 |
value |
|
| System.Int32 |
version |
|
| System.Int32 |
minValue |
|
| System.Int32 |
maxValue |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Hash6432shift(Int64)
Declaration
public static int Hash6432shift(long key)
Parameters
| Type |
Name |
Description |
| System.Int64 |
key |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
HashInteger(Int32)
Declaration
public static int HashInteger(int a)
Parameters
| Type |
Name |
Description |
| System.Int32 |
a |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
HashInteger(Int32, Int32)
Declaration
public static int HashInteger(int a, int b)
Parameters
| Type |
Name |
Description |
| System.Int32 |
a |
|
| System.Int32 |
b |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
HashInteger(Int32, Int32, Int32)
Declaration
public static int HashInteger(int a, int b, int c)
Parameters
| Type |
Name |
Description |
| System.Int32 |
a |
|
| System.Int32 |
b |
|
| System.Int32 |
c |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
HashInteger(Int32, Int32, Int32, Int32)
Declaration
public static int HashInteger(int a, int b, int c, int d)
Parameters
| Type |
Name |
Description |
| System.Int32 |
a |
|
| System.Int32 |
b |
|
| System.Int32 |
c |
|
| System.Int32 |
d |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
HashInteger(Int32, Int32, Int32, Int32, Int32)
Declaration
public static int HashInteger(int a, int b, int c, int d, int e)
Parameters
| Type |
Name |
Description |
| System.Int32 |
a |
|
| System.Int32 |
b |
|
| System.Int32 |
c |
|
| System.Int32 |
d |
|
| System.Int32 |
e |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
HashInteger(Int32, Int32, Int32, Int32, Int32, Int32)
Declaration
public static int HashInteger(int a, int b, int c, int d, int e, int f)
Parameters
| Type |
Name |
Description |
| System.Int32 |
a |
|
| System.Int32 |
b |
|
| System.Int32 |
c |
|
| System.Int32 |
d |
|
| System.Int32 |
e |
|
| System.Int32 |
f |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
HashInteger(Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Declaration
public static int HashInteger(int a, int b, int c, int d, int e, int f, int g)
Parameters
| Type |
Name |
Description |
| System.Int32 |
a |
|
| System.Int32 |
b |
|
| System.Int32 |
c |
|
| System.Int32 |
d |
|
| System.Int32 |
e |
|
| System.Int32 |
f |
|
| System.Int32 |
g |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
HashInteger(UInt32)
Declaration
public static uint HashInteger(uint a)
Parameters
| Type |
Name |
Description |
| System.UInt32 |
a |
|
Returns
| Type |
Description |
| System.UInt32 |
|
|
Improve this Doc
View Source
HashLarson(Byte[], UInt32)
Declaration
public static uint HashLarson(byte[] key, uint len)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
key |
|
| System.UInt32 |
len |
|
Returns
| Type |
Description |
| System.UInt32 |
|
|
Improve this Doc
View Source
HashLarson(Int32)
Declaration
public static uint HashLarson(int a)
Parameters
| Type |
Name |
Description |
| System.Int32 |
a |
|
Returns
| Type |
Description |
| System.UInt32 |
|
|
Improve this Doc
View Source
Mix(Int32, Int32)
Declaration
public static int Mix(int a, int b)
Parameters
| Type |
Name |
Description |
| System.Int32 |
a |
|
| System.Int32 |
b |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Mix(Int32, Int32, Int32)
Declaration
public static int Mix(int a, int b, int c)
Parameters
| Type |
Name |
Description |
| System.Int32 |
a |
|
| System.Int32 |
b |
|
| System.Int32 |
c |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Mix(UInt32, UInt32)
Declaration
public static uint Mix(uint a, uint b)
Parameters
| Type |
Name |
Description |
| System.UInt32 |
a |
|
| System.UInt32 |
b |
|
Returns
| Type |
Description |
| System.UInt32 |
|
|
Improve this Doc
View Source
Mix(UInt32, UInt32, UInt32)
Robert Jenkins' 96 bit Mix Function
Declaration
public static uint Mix(uint a, uint b, uint c)
Parameters
| Type |
Name |
Description |
| System.UInt32 |
a |
|
| System.UInt32 |
b |
|
| System.UInt32 |
c |
|
Returns
| Type |
Description |
| System.UInt32 |
|
|
Improve this Doc
View Source
RotateLeft(Int32, Int32)
Declaration
public static int RotateLeft(int value, int count)
Parameters
| Type |
Name |
Description |
| System.Int32 |
value |
|
| System.Int32 |
count |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
RotateLeft(Int64, Int32)
Declaration
public static long RotateLeft(long value, int count)
Parameters
| Type |
Name |
Description |
| System.Int64 |
value |
|
| System.Int32 |
count |
|
Returns
| Type |
Description |
| System.Int64 |
|
|
Improve this Doc
View Source
RotateLeft(UInt32, Int32)
Declaration
public static uint RotateLeft(uint value, int count)
Parameters
| Type |
Name |
Description |
| System.UInt32 |
value |
|
| System.Int32 |
count |
|
Returns
| Type |
Description |
| System.UInt32 |
|
|
Improve this Doc
View Source
RotateLeft(UInt64, Int32)
Declaration
public static ulong RotateLeft(ulong value, int count)
Parameters
| Type |
Name |
Description |
| System.UInt64 |
value |
|
| System.Int32 |
count |
|
Returns
| Type |
Description |
| System.UInt64 |
|
|
Improve this Doc
View Source
RotateRight(Int32, Int32)
Declaration
public static int RotateRight(int value, int count)
Parameters
| Type |
Name |
Description |
| System.Int32 |
value |
|
| System.Int32 |
count |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
RotateRight(Int64, Int32)
Declaration
public static long RotateRight(long value, int count)
Parameters
| Type |
Name |
Description |
| System.Int64 |
value |
|
| System.Int32 |
count |
|
Returns
| Type |
Description |
| System.Int64 |
|
|
Improve this Doc
View Source
RotateRight(UInt32, Int32)
Declaration
public static uint RotateRight(uint value, int count)
Parameters
| Type |
Name |
Description |
| System.UInt32 |
value |
|
| System.Int32 |
count |
|
Returns
| Type |
Description |
| System.UInt32 |
|
|
Improve this Doc
View Source
RotateRight(UInt64, Int32)
Declaration
public static ulong RotateRight(ulong value, int count)
Parameters
| Type |
Name |
Description |
| System.UInt64 |
value |
|
| System.Int32 |
count |
|
Returns
| Type |
Description |
| System.UInt64 |
|