3 instantiations of ViewBufferValue
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Buffers\ViewBuffer.cs (3)
91AppendValue(new ViewBufferValue(new EncodingWrapper(unencoded))); 104AppendValue(new ViewBufferValue(content)); 117AppendValue(new ViewBufferValue(encoded));
30 references to ViewBufferValue
Microsoft.AspNetCore.Mvc.ViewFeatures (23)
Buffers\IViewBufferScope.cs (2)
16ViewBufferValue[] GetPage(int pageSize); 22void ReturnSegment(ViewBufferValue[] segment);
Buffers\MemoryPoolViewBufferScope.cs (10)
14private readonly ArrayPool<ViewBufferValue> _viewBufferPool; 16private List<ViewBufferValue[]> _available; 17private List<ViewBufferValue[]> _leased; 24/// The <see cref="ArrayPool{ViewBufferValue}"/> for creating <see cref="ViewBufferValue"/> instances. 29public MemoryPoolViewBufferScope(ArrayPool<ViewBufferValue> viewBufferPool, ArrayPool<char> charPool) 36public ViewBufferValue[] GetPage(int pageSize) 43_leased = new List<ViewBufferValue[]>(1); 46ViewBufferValue[] segment = null; 71public void ReturnSegment(ViewBufferValue[] segment) 79_available = new List<ViewBufferValue[]>();
Buffers\ViewBuffer.cs (5)
125private void AppendValue(ViewBufferValue value) 188var value = page.Buffer[j]; 221var value = page.Buffer[j]; 263var value = page.Buffer[j]; 300var value = page.Buffer[j];
Buffers\ViewBufferPage.cs (3)
10public ViewBufferPage(ViewBufferValue[] buffer) 15public ViewBufferValue[] Buffer { get; } 25public void Append(ViewBufferValue value) => Buffer[Count++] = value;
Buffers\ViewBufferValue.cs (2)
17/// Initializes a new instance of <see cref="ViewBufferValue"/> with a <c>string</c> value. 26/// Initializes a new instance of <see cref="ViewBufferValue"/> with a <see cref="IHtmlContent"/> value.
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (1)
208services.TryAddSingleton(ArrayPool<ViewBufferValue>.Shared);
Microsoft.AspNetCore.Mvc.Views.TestCommon (7)
TestViewBufferScope.cs (7)
10public IList<ViewBufferValue[]> CreatedBuffers { get; } = new List<ViewBufferValue[]>(); 12public IList<ViewBufferValue[]> ReturnedBuffers { get; } = new List<ViewBufferValue[]>(); 14public ViewBufferValue[] GetPage(int size) 16var buffer = new ViewBufferValue[size]; 21public void ReturnSegment(ViewBufferValue[] segment)