Shegotwet/Assets/GUPS/AntiCheat/Source/Protected/Primitive/UIntFloat.cs

19 lines
393 B
C#
Raw Normal View History

2025-09-09 00:14:19 +00:00
// System
using System.Runtime.InteropServices;
namespace GUPS.AntiCheat.Protected
{
/// <summary>
/// Helper class to parse float to int and the other way around.
/// </summary>
[StructLayout(LayoutKind.Explicit)]
internal struct UIntFloat
{
[FieldOffset(0)]
public float floatValue;
[FieldOffset(0)]
public uint intValue;
}
}