aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Common/Hash128.cs
diff options
context:
space:
mode:
authorTSR Berry <20988865+TSRBerry@users.noreply.github.com>2023-04-08 01:22:00 +0200
committerMary <thog@protonmail.com>2023-04-27 23:51:14 +0200
commitcee712105850ac3385cd0091a923438167433f9f (patch)
tree4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /Ryujinx.Common/Hash128.cs
parentcd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff)
Move solution and projects to src
Diffstat (limited to 'Ryujinx.Common/Hash128.cs')
-rw-r--r--Ryujinx.Common/Hash128.cs48
1 files changed, 0 insertions, 48 deletions
diff --git a/Ryujinx.Common/Hash128.cs b/Ryujinx.Common/Hash128.cs
deleted file mode 100644
index 04457bd0..00000000
--- a/Ryujinx.Common/Hash128.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using System;
-using System.Runtime.InteropServices;
-
-namespace Ryujinx.Common
-{
- [StructLayout(LayoutKind.Sequential)]
- public struct Hash128 : IEquatable<Hash128>
- {
- public ulong Low;
- public ulong High;
-
- public Hash128(ulong low, ulong high)
- {
- Low = low;
- High = high;
- }
-
- public override string ToString()
- {
- return $"{High:x16}{Low:x16}";
- }
-
- public static bool operator ==(Hash128 x, Hash128 y)
- {
- return x.Equals(y);
- }
-
- public static bool operator !=(Hash128 x, Hash128 y)
- {
- return !x.Equals(y);
- }
-
- public override bool Equals(object obj)
- {
- return obj is Hash128 hash128 && Equals(hash128);
- }
-
- public bool Equals(Hash128 cmpObj)
- {
- return Low == cmpObj.Low && High == cmpObj.High;
- }
-
- public override int GetHashCode()
- {
- return HashCode.Combine(Low, High);
- }
- }
-}