Adaug proiectul Unity

This commit is contained in:
2026-11-01 23:39:55 +02:00
parent cb14d9d37d
commit 863eac8f2c
23463 changed files with 5412601 additions and 0 deletions
@@ -0,0 +1,20 @@
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;
}
}