2 writes to Buffer
Microsoft.Extensions.Primitives (2)
40 references to Buffer
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Mvc.Abstractions (2)
Microsoft.AspNetCore.Mvc.Core (6)
Microsoft.AspNetCore.Mvc.Core.Test (3)
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)
Microsoft.Extensions.Primitives (15)
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)