31 lines
886 B
C#
31 lines
886 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Assets.Scripts.Ble.Win.CPPBridge
|
|
{
|
|
internal static class GattUuidExtension
|
|
{
|
|
// Token: 0x0600213A RID: 8506 RVA: 0x000896FD File Offset: 0x000878FD
|
|
public static Guid WclShortGuidToGuid(this ushort shortUuid)
|
|
{
|
|
return new Guid("0000XXXX-0000-1000-8000-00805F9B34FB".Replace("XXXX", shortUuid.ToString("X4")));
|
|
}
|
|
|
|
// Token: 0x0600213B RID: 8507 RVA: 0x0008971F File Offset: 0x0008791F
|
|
public static Guid WclGuidToNormalizedGuid(this GattUuid uuid)
|
|
{
|
|
if (uuid.IsShortUuid)
|
|
{
|
|
return new Guid("0000XXXX-0000-1000-8000-00805F9B34FB".Replace("XXXX", uuid.ShortUuid.ToString("X4")));
|
|
}
|
|
return uuid.LongUuid;
|
|
}
|
|
|
|
// Token: 0x04001365 RID: 4965
|
|
public const string GuidTemplate = "0000XXXX-0000-1000-8000-00805F9B34FB";
|
|
}
|
|
}
|