Files
Xune/UIX.RenderApi.Skia/Microsoft/Iris/Render/Protocol/BLOBREF.cs
T

32 lines
1.1 KiB
C#
Raw Normal View History

2021-07-11 22:59:29 -05:00
// Decompiled with JetBrains decompiler
// Type: Microsoft.Iris.Render.Protocol.BLOBREF
// Assembly: UIX.RenderApi, Version=4.8.0.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217
// MVID: D47658B8-A8EA-43D6-8837-ECE823BFFFC1
// Assembly location: C:\Program Files\Zune\UIX.RenderApi.dll
using System.Runtime.InteropServices;
namespace Microsoft.Iris.Render.Protocol
{
2021-07-11 23:04:40 -05:00
[ComVisible(false)]
internal struct BLOBREF
{
public static readonly BLOBREF NULL = new BLOBREF();
private uint value;
2021-07-11 22:59:29 -05:00
2021-07-11 23:04:40 -05:00
private BLOBREF(uint value) => this.value = value;
2021-07-11 22:59:29 -05:00
2021-07-11 23:04:40 -05:00
public static bool operator ==(BLOBREF hl, BLOBREF hr) => (int)hl.value == (int)hr.value;
2021-07-11 22:59:29 -05:00
2021-07-11 23:04:40 -05:00
public static bool operator !=(BLOBREF hl, BLOBREF hr) => (int)hl.value != (int)hr.value;
2021-07-11 22:59:29 -05:00
2021-07-11 23:04:40 -05:00
public override bool Equals(object oCompare) => (int)this.value == (int)(uint)oCompare;
2021-07-11 22:59:29 -05:00
2021-07-11 23:04:40 -05:00
public override int GetHashCode() => (int)this.value;
2021-07-11 22:59:29 -05:00
2021-07-11 23:04:40 -05:00
public static BLOBREF FromUInt32(uint value) => new BLOBREF(value);
2021-07-11 22:59:29 -05:00
2021-07-11 23:04:40 -05:00
public static uint ToUInt32(BLOBREF handle) => handle.value;
}
2021-07-11 22:59:29 -05:00
}