using System;
using System.Runtime.CompilerServices;
using Unity.XR.CoreUtils;
namespace UnityEngine.XR.ARFoundation.InternalUtils
{
static class SerializableGuidUtility
{
/// Given a , resolves it into the equivalent SerializableGuid.
/// The guid to resolve.
/// A containing the same data.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static ARSubsystems.SerializableGuid AsSerializedGuid(Guid guid)
{
guid.Decompose(out var low, out var high);
return new ARSubsystems.SerializableGuid(low, high);
}
}
}