Skip to content

Commit 54405bc

Browse files
authored
Rename UInt32 to uint
Signed-off-by: Xen <lordofxen@deskasoft.com>
1 parent 8a9a034 commit 54405bc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

HashifyNet/Algorithms/FNV/Utilities/FNVPrimeOffset.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ namespace HashifyNet.Algorithms.FNV.Utilities
3737
{
3838
internal sealed class FNVPrimeOffset
3939
{
40-
public IReadOnlyList<UInt32> Prime { get; }
41-
public IReadOnlyList<UInt32> Offset { get; }
40+
public IReadOnlyList<uint> Prime { get; }
41+
public IReadOnlyList<uint> Offset { get; }
4242

43-
private static readonly ConcurrentDictionary<(BigInteger, int), IReadOnlyList<UInt32>> _calculatedUintArrays =
43+
private static readonly ConcurrentDictionary<(BigInteger, int), IReadOnlyList<uint>> _calculatedUintArrays =
4444
new ConcurrentDictionary<(BigInteger, int), IReadOnlyList<uint>>();
4545

46-
private FNVPrimeOffset(IReadOnlyList<UInt32> prime, IReadOnlyList<UInt32> offset)
46+
private FNVPrimeOffset(IReadOnlyList<uint> prime, IReadOnlyList<uint> offset)
4747
{
4848
Debug.Assert(prime != null);
4949
Debug.Assert(offset != null);
@@ -74,15 +74,15 @@ public static FNVPrimeOffset Create(int bitSize, BigInteger prime, BigInteger of
7474
_calculatedUintArrays.GetOrAdd((offset, bitSize), ToUInt32Array));
7575
}
7676

77-
private static IReadOnlyList<UInt32> ToUInt32Array((BigInteger, int) tuple) =>
77+
private static IReadOnlyList<uint> ToUInt32Array((BigInteger, int) tuple) =>
7878
ToUInt32Array(tuple.Item1, tuple.Item2);
7979

80-
private static IReadOnlyList<UInt32> ToUInt32Array(BigInteger value, int bitSize)
80+
private static IReadOnlyList<uint> ToUInt32Array(BigInteger value, int bitSize)
8181
{
8282
Debug.Assert(bitSize > 0);
8383
Debug.Assert(bitSize % 32 == 0);
8484

85-
var uint32Values = new UInt32[bitSize / 32];
85+
var uint32Values = new uint[bitSize / 32];
8686
var bigIntegerBytes = value.ToByteArray();
8787

8888
var copyLength = uint32Values.Length * 4;
@@ -100,4 +100,4 @@ private static IReadOnlyList<UInt32> ToUInt32Array(BigInteger value, int bitSize
100100
return uint32Values;
101101
}
102102
}
103-
}
103+
}

0 commit comments

Comments
 (0)