2 writes to _union
System.Private.Windows.Core (2)
System\Value.cs (2)
30_union = default; 680Unsafe.SkipInit(out _union);
84 references to _union
System.Private.Windows.Core (84)
System\Value.cs (80)
53if (_union.UInt64 != 0) 90_union.Byte = value; 98_union.Byte = value.Value; 116_union.SByte = value; 124_union.SByte = value.Value; 142_union.Boolean = value; 150_union.Boolean = value.Value; 168_union.Char = value; 176_union.Char = value.Value; 194_union.Int16 = value; 202_union.Int16 = value.Value; 220_union.Int32 = value; 228_union.Int32 = value.Value; 246_union.Int64 = value; 254_union.Int64 = value.Value; 272_union.UInt16 = value; 280_union.UInt16 = value.Value; 298_union.UInt32 = value; 306_union.UInt32 = value.Value; 324_union.UInt64 = value; 332_union.UInt64 = value.Value; 350_union.Single = value; 358_union.Single = value.Value; 376_union.Double = value; 384_union.Double = value.Value; 402_union.Size = value; 410_union.Size = value.Value; 428_union.Point = value; 436_union.Point = value.Value; 456_union.PackedColor = packed; 490_union.Ticks = value.Ticks; 495_union.PackedDateTimeOffset = packed; 525_union.DateTime = value; 534_union.DateTime = value.Value; 557_union.UInt64 = ulong.MaxValue; 561_union.Segment = (segment.Offset, segment.Count); 576_union.UInt64 = ulong.MaxValue; 580_union.Segment = (segment.Offset, segment.Count); 682_union.UInt64 = u; 716value = Unsafe.As<Union, T>(ref Unsafe.AsRef(in _union)); 721Color color = _union.PackedColor.Extract(); 727value = Unsafe.As<DateTime, T>(ref Unsafe.AsRef(in _union.DateTime)); 732DateTimeOffset dto = new(_union.Ticks, TimeSpan.Zero); 738DateTimeOffset dto = _union.PackedDateTimeOffset.Extract(); 778ulong bits = _union.UInt64; 782? new(byteArray, _union.Segment.Offset, _union.Segment.Count) 794ulong bits = _union.UInt64; 798? new(charArray, _union.Segment.Offset, _union.Segment.Count) 810int? @int = _union.Int32; 816long? @long = _union.Int64; 822bool? @bool = _union.Boolean; 828float? single = _union.Single; 834double? @double = _union.Double; 840uint? @uint = _union.UInt32; 846ulong? @ulong = _union.UInt64; 852char? @char = _union.Char; 858short? @short = _union.Int16; 864ushort? @ushort = _union.UInt16; 870byte? @byte = _union.Byte; 876sbyte? @sbyte = _union.SByte; 882Color? color = _union.PackedColor.Extract(); 888DateTime? dateTime = _union.DateTime; 894DateTimeOffset? dto = new DateTimeOffset(_union.Ticks, TimeSpan.Zero); 900DateTimeOffset? dto = _union.PackedDateTimeOffset.Extract(); 919NullableTemplate<byte> byteTemplate = new(_union.Byte); 924NullableTemplate<ushort> ushortTemplate = new(_union.UInt16); 929NullableTemplate<uint> uintTemplate = new(_union.UInt32); 934NullableTemplate<ulong> ulongTemplate = new(_union.UInt64); 966if (_union.UInt64 == 0 && _object is char[]) 980if (_union.UInt64 == 0 && _object is byte[]) 1000else if (_union.UInt64 != 0 && _object is char[] chars) 1002value = _union.UInt64 != ulong.MaxValue 1003? (T)(object)new ArraySegment<char>(chars, _union.Segment.Offset, _union.Segment.Count) 1007else if (_union.UInt64 != 0 && _object is byte[] bytes) 1009value = _union.UInt64 != ulong.MaxValue 1010? (T)(object)new ArraySegment<byte>(bytes, _union.Segment.Offset, _union.Segment.Count)
System\Value.PackedColorFlag.cs (1)
15=> value._union.PackedColor.Extract();
System\Value.PackedDateTimeOffsetFlag.cs (1)
12public override DateTimeOffset To(in Value value) => value._union.PackedDateTimeOffset.Extract();
System\Value.StraightCastFlag.cs (1)
16public override T To(in Value value) => Unsafe.As<Union, T>(ref Unsafe.AsRef(in value._union));
System\Value.UtcDateTimeOffsetFlag.cs (1)
12public override DateTimeOffset To(in Value value) => new(new DateTime(value._union.Ticks, DateTimeKind.Utc));