11 writes to Length
System.Private.Uri (11)
System\Uri.cs (10)
2842dest.Length--; 2877hostBuilder.Length = 0; 2891dest.Length--; 2907dest.Length -= MaxUshortLength - charsWritten; 4339dest.Length = end; 4375dest.Length = start; 4400dest.Length = end; 4421dest.Length = offset + Compress(dest.RawChars.Slice(offset, dest.Length - offset), _syntax); 4434dest.Length = start; 4475dest.Length = start;
System\UriBuilder.cs (1)
364vsb.Length -= MaxUshortLength - charsWritten;
24 references to Length
System.Private.Uri (24)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (7)
58/// Does not ensure there is a null char after <see cref="Length"/> 70/// <param name="terminate">Ensures that the builder has a null char after <see cref="Length"/></param> 75EnsureCapacity(Length + 1); 76_chars[Length] = '\0'; 103/// <param name="terminate">Ensures that the builder has a null char after <see cref="Length"/></param> 108EnsureCapacity(Length + 1); 109_chars[Length] = '\0';
System\Uri.cs (13)
2881UriHelper.UnescapeString(hostBuilder.Length == 0 ? host : hostBuilder.AsSpan(), 2919if (InFact(Flags.AuthorityFound) && dest.Length != 0 && dest[0] == '/') 4315int start = dest.Length; 4336int end = dest.Length; 4373copy.Append(dest.AsSpan(start, dest.Length - start)); 4378start = dest.Length; 4397int end = dest.Length; 4418if (InFact(Flags.ShouldBeCompressed) && dest.Length - offset > 0) 4421dest.Length = offset + Compress(dest.RawChars.Slice(offset, dest.Length - offset), _syntax); 4432copy.Append(dest.AsSpan(start, dest.Length - start)); 4437start = dest.Length; 4473copy.Append(dest.AsSpan(start, dest.Length - start)); 4478UriHelper.UnescapeString(pCopy, 0, copy.Length,
System\UriExt.cs (1)
665int newLength = indexOfFirstToUnescape + vsb.Length;
System\UriHelper.cs (3)
170int newLength = checked(indexOfFirstToEscape + vsb.Length); 339if (vsb.Length > dest.Length) 347destPosition = vsb.Length;