mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-17 07:37:06 +00:00
28 lines
909 B
C#
28 lines
909 B
C#
using System;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace LibKenjinx.Jni.References;
|
|
|
|
public readonly struct JGlobalRef : IEquatable<JGlobalRef>
|
|
{
|
|
#pragma warning disable 0649
|
|
private readonly JObjectLocalRef _value;
|
|
|
|
public JObjectLocalRef Value => _value;
|
|
#pragma warning restore 0649
|
|
|
|
#region Public Methods
|
|
public Boolean Equals(JGlobalRef other) => this._value.Equals(other._value);
|
|
#endregion
|
|
|
|
#region Override Methods
|
|
public override Boolean Equals([NotNullWhen(true)] object? obj) => obj is JGlobalRef other && this.Equals(other);
|
|
public override Int32 GetHashCode() => this._value.GetHashCode();
|
|
#endregion
|
|
|
|
#region Operators
|
|
public static explicit operator JObjectLocalRef(JGlobalRef a) => a._value;
|
|
public static Boolean operator ==(JGlobalRef a, JGlobalRef b) => a.Equals(b);
|
|
public static Boolean operator !=(JGlobalRef a, JGlobalRef b) => !a.Equals(b);
|
|
#endregion
|
|
}
|