study/first_study/Library/PackageCache/com.unity.collections@aea9d3bd5e19/Unity.Collections/UIntFloat.cs
jh04010421 739d49f1a0 Unity | 2026.01.20
수업 실습 파일
2026-01-20 11:01:57 +09:00

21 lines
543 B
C#

using System.Runtime.InteropServices;
namespace Unity.Collections
{
/// <summary>
/// Declares a union object where all members start at the same location in memory.
/// Allows for retrieving the bits for i.e. the floatValue.
/// </summary>
[StructLayout(LayoutKind.Explicit)]
internal struct UIntFloat
{
[FieldOffset(0)] public float floatValue;
[FieldOffset(0)] public uint intValue;
[FieldOffset(0)] public double doubleValue;
[FieldOffset(0)] public ulong longValue;
}
}