2 writes to Buffer
Microsoft.Extensions.Primitives (2)
StringSegment.cs (2)
30Buffer = buffer; 59Buffer = buffer;
40 references to Buffer
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)
942midKey.Buffer, 944searchKey.Buffer,
Microsoft.AspNetCore.Mvc.Core (6)
Formatters\MediaType.cs (3)
36: this(mediaType.Buffer ?? string.Empty, mediaType.Offset, mediaType.Length) 225var builder = new StringBuilder(mediaType.Buffer, mediaType.Offset, charsetOffset, finalLength); 227builder.Append(mediaType.Buffer, restOffset, restLength);
Routing\ViewEnginePath.cs (1)
111builder.Append(segment.Buffer, segment.Offset, segment.Length);
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (2)
29: this(mediaType.Buffer ?? string.Empty, mediaType.Offset, mediaType.Length) 150if (subType.Buffer![currentPos] == '+')
Microsoft.AspNetCore.Mvc.Core.Test (3)
Formatters\TextOutputFormatterTests.cs (3)
123Assert.Same(firstContentType.Buffer, secondContentType.Buffer); 174Assert.Same(contentType, formatterContext.ContentType.Buffer);
Microsoft.AspNetCore.Mvc.TagHelpers (7)
GlobbingUrlBuilder.cs (7)
247xSegment.Buffer, 249ySegment.Buffer, 293value = new StringSegment(value.Buffer, value.Offset + 2, value.Length - 2); 299value = new StringSegment(value.Buffer, value.Offset + 1, value.Length - 1); 316if (!IsWhiteSpace(value.Buffer, offset)) 327if (!IsWhiteSpace(value.Buffer, trimmedEnd)) 335return new StringSegment(value.Buffer, offset, trimmedEnd - offset + 1);
Microsoft.AspNetCore.Routing (3)
Patterns\RoutePatternMatcher.cs (1)
252var captured = requestSegment.Buffer.Substring(requestSegment.Offset);
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (2)
29: this(mediaType.Buffer ?? string.Empty, mediaType.Offset, mediaType.Length) 150if (subType.Buffer![currentPos] == '+')
Microsoft.Extensions.Primitives (15)
Extensions.cs (1)
21return builder.Append(segment.Buffer, segment.Offset, segment.Length);
InplaceStringBuilder.cs (1)
80Append(segment.Buffer, segment.Offset, segment.Length);
StringSegment.cs (13)
82public string? Value => HasValue ? Buffer.Substring(Offset, Length) : null; 87[MemberNotNullWhen(true, nameof(Buffer))] 89public bool HasValue => Buffer != null; 108Debug.Assert(Buffer is not 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); 259return text == Buffer; // only return true if both are null 405return Buffer.Substring(Offset + offset, length); 438return new StringSegment(Buffer, Offset + offset, length); 533index = Buffer.IndexOfAny(anyOf, Offset + startIndex, count);
Microsoft.Net.Http.Headers (2)
HeaderUtilities.cs (2)
372if (string.IsNullOrEmpty(value.Buffer) || value.Length == 0) 398if (string.IsNullOrEmpty(value.Buffer) || value.Length == 0)