mirror of
https://github.com/kwsch/NHSE.git
synced 2026-08-12 04:36:19 -05:00
Minor tweaks
no functional change
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
namespace NHSE.Core
|
||||
{
|
||||
public readonly struct EncryptedSaveFile
|
||||
public readonly ref struct EncryptedSaveFile
|
||||
{
|
||||
public readonly byte[] Data;
|
||||
public readonly byte[] Header;
|
||||
@@ -12,10 +12,10 @@ public EncryptedSaveFile(byte[] data, byte[] header)
|
||||
}
|
||||
|
||||
#region Equality Comparison
|
||||
public override bool Equals(object obj) => obj is EncryptedSaveFile r && r == this;
|
||||
public override bool Equals(object obj) => false;
|
||||
public override int GetHashCode() => Data.GetHashCode();
|
||||
public static bool operator !=(EncryptedSaveFile left, EncryptedSaveFile right) => !(left == right);
|
||||
public static bool operator ==(EncryptedSaveFile left, EncryptedSaveFile right) => left.Data == right.Data && left.Header == right.Header;
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user