Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920
  1. using System.Runtime.InteropServices;
  2. namespace Unity.Collections
  3. {
  4. /// <summary>
  5. /// Declares a union object where all members start at the same location in memory.
  6. /// Allows for retrieving the bits for i.e. the floatValue.
  7. /// </summary>
  8. [StructLayout(LayoutKind.Explicit)]
  9. internal struct UIntFloat
  10. {
  11. [FieldOffset(0)] public float floatValue;
  12. [FieldOffset(0)] public uint intValue;
  13. [FieldOffset(0)] public double doubleValue;
  14. [FieldOffset(0)] public ulong longValue;
  15. }
  16. }