File: _generated\45\Windows.Win32.SCOPE_ID.g.cs
Web Access
Project: src\aspnetcore\src\Servers\IIS\IIS\src\Microsoft.AspNetCore.Server.IIS.csproj (Microsoft.AspNetCore.Server.IIS)
// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------

#pragma warning disable CS1591,CS1573,CS0465,CS0649,CS8019,CS1570,CS1584,CS1658,CS0436,CS8981,SYSLIB1092,CS3016
using global::System;
using global::System.Diagnostics;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Runtime.CompilerServices;
using global::System.Runtime.InteropServices;
using global::System.Runtime.Versioning;
using winmdroot = global::Windows.Win32;
namespace Windows.Win32
{
	namespace Networking.WinSock
	{
		[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.296+7db75b4971.RR")]
		internal partial struct SCOPE_ID
		{
			internal _Anonymous_e__Union Anonymous;

			/// <inheritdoc cref="_Anonymous_e__Union._Anonymous_e__Struct.Zone"/>
			internal uint Zone			{
				readonly get => this.Anonymous.Anonymous.Zone;
				set => this.Anonymous.Anonymous.Zone = value;
			}

			/// <inheritdoc cref="_Anonymous_e__Union._Anonymous_e__Struct.Level"/>
			internal byte Level			{
				readonly get => this.Anonymous.Anonymous.Level;
				set => this.Anonymous.Anonymous.Level = value;
			}

			/// <inheritdoc cref="_Anonymous_e__Union._Anonymous_e__Struct._bitfield"/>
			[UnscopedRef]
			internal ref uint _bitfield => ref this.Anonymous.Anonymous._bitfield;

			/// <inheritdoc cref="_Anonymous_e__Union.Value"/>
			[UnscopedRef]
			internal ref uint Value => ref this.Anonymous.Value;

			[StructLayout(LayoutKind.Explicit)]
			[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.296+7db75b4971.RR")]
			internal partial struct _Anonymous_e__Union
			{
				[FieldOffset(0)]
				internal _Anonymous_e__Struct Anonymous;

				[FieldOffset(0)]
				internal uint Value;

				/// <inheritdoc cref="_Anonymous_e__Struct.Zone"/>
				internal uint Zone				{
					readonly get => this.Anonymous.Zone;
					set => this.Anonymous.Zone = value;
				}

				/// <inheritdoc cref="_Anonymous_e__Struct.Level"/>
				internal byte Level				{
					readonly get => this.Anonymous.Level;
					set => this.Anonymous.Level = value;
				}

				/// <inheritdoc cref="_Anonymous_e__Struct._bitfield"/>
				[UnscopedRef]
				internal ref uint _bitfield => ref this.Anonymous._bitfield;

				[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.296+7db75b4971.RR")]
				internal partial struct _Anonymous_e__Struct
				{
					internal uint _bitfield;

					/// <summary>Gets or sets bits 0-27 in the <see cref="_bitfield" /> field. Allowed values are [0..268435455].</summary>
					internal uint Zone
					{
												[MethodImpl(MethodImplOptions.AggressiveInlining)]
readonly get => (uint)((this._bitfield >> 0) & 0x0FFFFFFF);
												[MethodImpl(MethodImplOptions.AggressiveInlining)]
set
						{
							global::System.Diagnostics.Debug.Assert(value is <= (uint)268435455L);
							this._bitfield = (uint)((this._bitfield & unchecked((uint)~0x0FFFFFFF)) | ((uint)(value & 0x0FFFFFFF) << 0));
						}
					}

					/// <summary>Gets or sets bits 28-31 in the <see cref="_bitfield" /> field. Allowed values are [0..15].</summary>
					internal byte Level
					{
												[MethodImpl(MethodImplOptions.AggressiveInlining)]
readonly get => (byte)((this._bitfield >> 28) & 0x0000000F);
												[MethodImpl(MethodImplOptions.AggressiveInlining)]
set
						{
							global::System.Diagnostics.Debug.Assert(value is <= (byte)15L);
							this._bitfield = (uint)((this._bitfield & unchecked((uint)~0xF0000000)) | ((uint)(value & 0x0000000F) << 28));
						}
					}
				}
			}
		}
	}
}