YooAsset/Assets/YooAsset/Runtime/Utility/BufferDefine.cs

22 lines
396 B
C#

using System.Runtime.InteropServices;
namespace YooAsset
{
[StructLayout(LayoutKind.Explicit)]
internal struct DoubleContent
{
[FieldOffset(0)]
public double doubleValue;
[FieldOffset(0)]
public ulong ulongValue;
}
[StructLayout(LayoutKind.Explicit)]
internal struct FloatContent
{
[FieldOffset(0)]
public float floatValue;
[FieldOffset(0)]
public uint uintValue;
}
}