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