Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

UIntFloat.cs 543B

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. }