35 lines
787 B
C#
35 lines
787 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Assets.Scripts.Ble.Win.CPPBridge
|
|
{
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
|
internal struct GattUuid
|
|
{
|
|
// Token: 0x06002139 RID: 8505 RVA: 0x000896C8 File Offset: 0x000878C8
|
|
public override string ToString()
|
|
{
|
|
if (!this.IsShortUuid)
|
|
{
|
|
return string.Format("{0:D}", this.LongUuid);
|
|
}
|
|
return string.Format("0x{0:X}", this.ShortUuid);
|
|
}
|
|
|
|
// Token: 0x04001362 RID: 4962
|
|
[MarshalAs(UnmanagedType.Bool)]
|
|
public bool IsShortUuid;
|
|
|
|
// Token: 0x04001363 RID: 4963
|
|
[MarshalAs(UnmanagedType.U2)]
|
|
public ushort ShortUuid;
|
|
|
|
// Token: 0x04001364 RID: 4964
|
|
public Guid LongUuid;
|
|
}
|
|
}
|