![]() |
BadScript 2
|
Implements Combination of HashCode Functions Taken from decompiled source of System.HashCode This exists because the System.HashCode implementation is not available in .NET Standard 2.0. More...
Static Public Member Functions | |
static uint | RotateLeft (uint value, int offset) |
Rotates the specified value left by the specified number of bits. Similar in behavior to the x86 instruction ROL. | |
static ulong | RotateLeft (ulong value, int offset) |
Rotates the specified value left by the specified number of bits. Similar in behavior to the x86 instruction ROL. | |
static uint | RotateRight (uint value, int offset) |
Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR. | |
static ulong | RotateRight (ulong value, int offset) |
Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR. | |
static int | Combine< T1 > (T1 value1) |
static int | Combine< T1, T2 > (T1 value1, T2 value2) |
static int | Combine< T1, T2, T3 > (T1 value1, T2 value2, T3 value3) |
static int | Combine< T1, T2, T3, T4 > (T1 value1, T2 value2, T3 value3, T4 value4) |
static int | Combine< T1, T2, T3, T4, T5 > (T1 value1, T2 value2, T3 value3, T4 value4, T5 value5) |
static int | Combine< T1, T2, T3, T4, T5, T6 > (T1 value1, T2 value2, T3 value3, T4 value4, T5 value5, T6 value6) |
static int | Combine< T1, T2, T3, T4, T5, T6, T7 > (T1 value1, T2 value2, T3 value3, T4 value4, T5 value5, T6 value6, T7 value7) |
static int | Combine< T1, T2, T3, T4, T5, T6, T7, T8 > (T1 value1, T2 value2, T3 value3, T4 value4, T5 value5, T6 value6, T7 value7, T8 value8) |
Static Private Member Functions | |
static uint | GenerateGlobalSeed () |
static void | Initialize (out uint v1, out uint v2, out uint v3, out uint v4) |
static uint | Round (uint hash, uint input) |
static uint | QueueRound (uint hash, uint queuedValue) |
static uint | MixState (uint v1, uint v2, uint v3, uint v4) |
static uint | MixEmptyState () |
static uint | MixFinal (uint hash) |
Static Private Attributes | |
const uint | PRIME1 = 2654435761U |
const uint | PRIME2 = 2246822519U |
const uint | PRIME3 = 3266489917U |
const uint | PRIME4 = 668265263U |
const uint | PRIME5 = 374761393U |
static readonly uint | s_Seed = GenerateGlobalSeed() |
Implements Combination of HashCode Functions Taken from decompiled source of System.HashCode This exists because the System.HashCode implementation is not available in .NET Standard 2.0.
Definition at line 10 of file BadHashCode.cs.
|
static |
Definition at line 88 of file BadHashCode.cs.
|
static |
Definition at line 109 of file BadHashCode.cs.
|
static |
Definition at line 125 of file BadHashCode.cs.
|
static |
Definition at line 143 of file BadHashCode.cs.
|
static |
Definition at line 165 of file BadHashCode.cs.
|
static |
Definition at line 190 of file BadHashCode.cs.
|
static |
Definition at line 223 of file BadHashCode.cs.
|
static |
Definition at line 259 of file BadHashCode.cs.
|
staticprivate |
Definition at line 83 of file BadHashCode.cs.
|
staticprivate |
Definition at line 299 of file BadHashCode.cs.
|
staticprivate |
Definition at line 325 of file BadHashCode.cs.
|
staticprivate |
Definition at line 331 of file BadHashCode.cs.
|
staticprivate |
Definition at line 320 of file BadHashCode.cs.
|
staticprivate |
Definition at line 314 of file BadHashCode.cs.
|
static |
Rotates the specified value left by the specified number of bits. Similar in behavior to the x86 instruction ROL.
value | The value to rotate. |
offset | The number of bits to rotate by. Any value outside the range [0..31] is treated as congruent mod 32. |
Definition at line 30 of file BadHashCode.cs.
|
static |
Rotates the specified value left by the specified number of bits. Similar in behavior to the x86 instruction ROL.
value | The value to rotate. |
offset | The number of bits to rotate by. Any value outside the range [0..63] is treated as congruent mod 64. |
Definition at line 46 of file BadHashCode.cs.
|
static |
Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR.
value | The value to rotate. |
offset | The number of bits to rotate by. Any value outside the range [0..31] is treated as congruent mod 32. |
Definition at line 62 of file BadHashCode.cs.
|
static |
Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR.
value | The value to rotate. |
offset | The number of bits to rotate by. Any value outside the range [0..63] is treated as congruent mod 64. |
Definition at line 78 of file BadHashCode.cs.
|
staticprivate |
Definition at line 308 of file BadHashCode.cs.
|
staticprivate |
Definition at line 12 of file BadHashCode.cs.
|
staticprivate |
Definition at line 13 of file BadHashCode.cs.
|
staticprivate |
Definition at line 14 of file BadHashCode.cs.
|
staticprivate |
Definition at line 15 of file BadHashCode.cs.
|
staticprivate |
Definition at line 16 of file BadHashCode.cs.
|
staticprivate |
Definition at line 17 of file BadHashCode.cs.