2 writes to Offset
Microsoft.Extensions.Primitives (2)
StringSegment.cs (2)
31Offset = 0; 60Offset = offset;
35 references to Offset
Microsoft.AspNetCore.Components (1)
src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (1)
252var captured = requestSegment.Buffer.Substring(requestSegment.Offset);
Microsoft.AspNetCore.Http.Abstractions (1)
HostString.cs (1)
149var encoded = s_idnMapping.GetAscii(host.Buffer!, host.Offset, host.Length);
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\ModelStateDictionary.cs (2)
943midKey.Offset, 945searchKey.Offset,
Microsoft.AspNetCore.Mvc.Core (8)
Formatters\MediaType.cs (4)
36: this(mediaType.Buffer ?? string.Empty, mediaType.Offset, mediaType.Length) 220var charsetOffset = charset.Offset - mediaType.Offset; 225var builder = new StringBuilder(mediaType.Buffer, mediaType.Offset, charsetOffset, finalLength);
Routing\ViewEnginePath.cs (1)
111builder.Append(segment.Buffer, segment.Offset, segment.Length);
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (3)
29: this(mediaType.Buffer ?? string.Empty, mediaType.Offset, mediaType.Length) 147var startPos = subType.Offset + subType.Length - 1; 148for (var currentPos = startPos; currentPos >= subType.Offset; currentPos--)
Microsoft.AspNetCore.Mvc.TagHelpers (7)
GlobbingUrlBuilder.cs (7)
248xSegment.Offset, 250ySegment.Offset, 293value = new StringSegment(value.Buffer, value.Offset + 2, value.Length - 2); 299value = new StringSegment(value.Buffer, value.Offset + 1, value.Length - 1); 313var offset = value.Offset; 314while (offset < value.Offset + value.Length) 324var trimmedEnd = value.Offset + value.Length - 1;
Microsoft.AspNetCore.Routing (4)
Patterns\RoutePatternMatcher.cs (1)
252var captured = requestSegment.Buffer.Substring(requestSegment.Offset);
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (3)
29: this(mediaType.Buffer ?? string.Empty, mediaType.Offset, mediaType.Length) 147var startPos = subType.Offset + subType.Length - 1; 148for (var currentPos = startPos; currentPos >= subType.Offset; currentPos--)
Microsoft.Extensions.Primitives (12)
Extensions.cs (1)
21return builder.Append(segment.Buffer, segment.Offset, segment.Length);
InplaceStringBuilder.cs (1)
80Append(segment.Buffer, segment.Offset, segment.Length);
StringSegment.cs (10)
82public string? Value => HasValue ? Buffer.Substring(Offset, Length) : null; 109return Buffer[Offset + index]; 117public ReadOnlySpan<char> AsSpan() => Buffer.AsSpan(Offset, Length); 136return Buffer.AsSpan(Offset + start, Length - start); 158return Buffer.AsSpan(Offset + start, length); 165public ReadOnlyMemory<char> AsMemory() => Buffer.AsMemory(Offset, Length); 405return Buffer.Substring(Offset + offset, length); 438return new StringSegment(Buffer, Offset + offset, length); 533index = Buffer.IndexOfAny(anyOf, Offset + startIndex, count); 536index -= Offset;