50 writes to _flags
System.Private.Uri (50)
System\Uri.cs (33)
142_flags |= Flags.Debug_LeftConstructor; 208Interlocked.Or(ref Unsafe.As<Flags, ulong>(ref _flags), (ulong)flags); 216_flags |= flags; 529_flags = Flags.Zero; 575_flags = Flags.Zero; 1960_flags |= Flags.ErrorOrParsingRecursion; 1985_flags &= ~(Flags.IndexMask | Flags.UserDrivenParsing); 2005_flags |= Flags.BasicHostType; 2006_flags |= (Flags)idx; 2035_flags |= Flags.AuthorityFound; 2050_flags |= Flags.DosPath; 2055_flags |= Flags.AuthorityFound; 2074_flags |= Flags.UncPath; 2080_flags |= Flags.UnixPath | Flags.AuthorityFound; 2101_flags |= Flags.AuthorityFound; 2112_flags |= Flags.AuthorityFound; 2125_flags |= ((Flags)idx | Flags.UnknownHostType); 2143_flags |= ((Flags)idx | Flags.UnknownHostType); 2152_flags |= (((_flags & Flags.AuthorityFound) != 0) ? Flags.BasicHostType : Flags.UnknownHostType); 2153_flags |= (Flags)idx; 2168idx = CheckAuthorityHelper(pUriString, idx, length, ref err, ref _flags, _syntax, ref newHost); 2195_flags |= (Flags)idx; 2405Flags oldValue = Interlocked.CompareExchange(ref _flags, (current & ~Flags.IndexMask) | cF, current); 2428_flags |= Flags.ErrorOrParsingRecursion; 2431_flags &= ~Flags.ErrorOrParsingRecursion; 2602_flags = (_flags & ~Flags.HostTypeMask) | Flags.BasicHostType; 2611_flags |= (Flags.HostNotCanonical | Flags.E_HostNotCanonical); 2615_flags = (_flags & ~Flags.HostTypeMask) | (flags & Flags.HostTypeMask); 2626_flags &= ~Flags.NotDefaultPort; 2627_flags |= (Flags.PortNotCanonical | Flags.E_PortNotCanonical); 2641_flags &= ~Flags.NotDefaultPort; 2643_flags |= Flags.NotDefaultPort; 2645_flags |= (Flags.PortNotCanonical | Flags.E_PortNotCanonical);
System\UriExt.cs (15)
34_flags |= Flags.UserEscaped; 37_flags |= Flags.DisablePathAndQueryCanonicalization; 39ParsingError err = ParseScheme(_string, ref _flags, ref _syntax!); 64_flags &= Flags.UserEscaped; // the only flag that makes sense for a relative uri 76_flags &= Flags.UserEscaped; // the only flag that makes sense for a relative uri 95_flags |= Flags.HasUnicode; 112_flags &= Flags.UserEscaped; // the only flag that makes sense for a relative uri 147_flags |= Flags.UserDrivenParsing; 160_flags &= Flags.UserEscaped; // the only flag that makes sense for a relative uri 169_flags = Flags.UserDrivenParsing | (_flags & Flags.UserEscaped); 201_flags &= (Flags.UserEscaped | Flags.HasUnicode); // the only flags that makes sense for a relative uri 739_flags = flags; 1059_flags = otherUri._flags; 1062_flags &= ~(Flags.MinimalUriInfoSet | Flags.AllUriInfoSet | Flags.IndexMask); 1079_flags |= (Flags)portIndex; // Port or path
System\UriScheme.cs (1)
80ulong previous = Interlocked.Or(ref Unsafe.As<Uri.Flags, ulong>(ref uri._flags), (ulong)Uri.Flags.CustomParser_ParseMinimalAlreadyCalled);
System\UriSyntax.cs (1)
272Interlocked.Or(ref Unsafe.As<Uri.Flags, ulong>(ref thisUri._flags), (ulong)Uri.Flags.CustomParser_ParseMinimalAlreadyCalled);
49 references to _flags
System.Private.Uri (49)
System\Uri.cs (41)
148Debug.Assert((_flags & Flags.Debug_LeftConstructor) == 0); 223get { return (_flags & Flags.ImplicitFile) != 0; } 228get { return (_flags & (Flags.UncPath | Flags.DosPath)) != 0; } 233get { return (_flags & Flags.DosPath) != 0; } 238get { return (_flags & Flags.UncPath) != 0; } 243get { return (_flags & Flags.UnixPath) != 0; } 248get { return _flags & Flags.HostTypeMask; } 274internal bool DisablePathAndQueryCanonicalization => (_flags & Flags.DisablePathAndQueryCanonicalization) != 0; 280return (_flags & Flags.UserDrivenParsing) != 0; 301return (_flags & flags) == 0; 306return (_flags & flags) != 0; 322Flags cF = _flags; 327Debug.Assert(_info != null && (_flags & Flags.MinimalUriInfoSet) != 0); 333if ((_flags & Flags.AllUriInfoSet) == 0) 1614ushort nonCanonical = (ushort)((ushort)_flags & (ushort)Flags.CannotDisplayCanonical); 1615if (((_flags & (Flags.ShouldBeCompressed | Flags.FirstSlashAbsent | Flags.BackslashInPath)) != 0) || 1952Debug.Assert((_flags & Flags.CustomParser_ParseMinimalAlreadyCalled) != 0); 1981int idx = (int)(_flags & Flags.IndexMask); 2088if ((_flags & (Flags.UncPath | Flags.DosPath | Flags.UnixPath)) != 0) 2152_flags |= (((_flags & Flags.AuthorityFound) != 0) ? Flags.BasicHostType : Flags.UnknownHostType); 2402Flags current = _flags; 2436Flags flags = _flags; 2585Flags flags = _flags & ~Flags.HostTypeMask; 2602_flags = (_flags & ~Flags.HostTypeMask) | Flags.BasicHostType; 2615_flags = (_flags & ~Flags.HostTypeMask) | (flags & Flags.HostTypeMask); 2663Debug.Assert(_info != null && (_flags & Flags.MinimalUriInfoSet) != 0); 2668ushort nonCanonical = unchecked((ushort)(((ushort)_flags & ((ushort)Flags.CannotDisplayCanonical << 7)) >> 6)); 2702Debug.Assert(_info != null && (_flags & Flags.MinimalUriInfoSet) != 0); 2707ushort nonCanonical = unchecked((ushort)((ushort)_flags & (ushort)Flags.CannotDisplayCanonical)); 2712if ((_flags & (Flags.ShouldBeCompressed | Flags.FirstSlashAbsent | Flags.BackslashInPath)) != 0) 3236if (((_flags & Flags.AuthorityFound) != 0) && (idx + i + 3 >= length || str[idx + i + 1] != '/' || 3245if ((_flags & Flags.HasUserInfo) != 0) 3410if (((_flags & Flags.AuthorityFound) != 0) && ((syntaxFlags & UriSyntaxFlags.PathIsRooted) != 0) 3420if (IsDosPath || (((_flags & Flags.AuthorityFound) != 0) && 3458if (((_flags & Flags.ImplicitFile) == 0) || ((_flags & Flags.UserEscaped) != 0) || 3467if (((_flags & Flags.ImplicitFile) != 0) && (result & (Check.ReservedFound | Check.EscapedCanonical)) != 0) 3787Debug.Assert((_flags & Flags.Debug_LeftConstructor) == 0 || (!_syntax.IsSimple && Monitor.IsEntered(_info))); 3797Debug.Assert((_flags & Flags.HasUserInfo) == 0 && (_flags & Flags.HostTypeMask) == 0); 4240if ((_flags & Flags.HasUnicode) != 0)
System\UriExt.cs (8)
31Debug.Assert(_originalUnicodeString is null && _info is null && _syntax is null && _flags == Flags.Zero); 169_flags = Flags.UserDrivenParsing | (_flags & Flags.UserEscaped); 473Flags nonCanonical = (_flags & (Flags.E_CannotDisplayCanonical | Flags.IriCanonical)); 545if ((_flags & Flags.CanonicalDnsHost) == 0 && HostType != Flags.IPv6HostType) 559if ((_flags & (Flags.SchemeNotCanonical | Flags.AuthorityFound)) 947if (((_flags & Flags.NotDefaultPort) != 0) || (uriComponents == UriComponents.StrongPort 964|| ((_flags & (Flags.HostNotCanonical | Flags.E_HostNotCanonical)) == 0))) 1059_flags = otherUri._flags;