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