mirror of
https://github.com/kwsch/NHSE.git
synced 2026-03-22 09:44:49 -05:00
22 lines
735 B
C#
22 lines
735 B
C#
namespace NHSE.Core
|
|
{
|
|
public readonly ref struct EncryptedSaveFile
|
|
{
|
|
public readonly byte[] Data;
|
|
public readonly byte[] Header;
|
|
|
|
public EncryptedSaveFile(byte[] data, byte[] header)
|
|
{
|
|
Data = data;
|
|
Header = header;
|
|
}
|
|
|
|
#region Equality Comparison
|
|
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
|
|
}
|
|
}
|