17 instantiations of TextChunk
Microsoft.AspNetCore.Components.Endpoints (4)
Rendering\Buffering\BufferedTextWriter.cs (4)
26
=> _currentOutput.Add(new
TextChunk
(value));
29
=> _currentOutput.Add(new
TextChunk
(new ArraySegment<char>(buffer, index, count), _charArraySegmentBuilder));
35
_currentOutput.Add(new
TextChunk
(value));
40
=> _currentOutput.Add(new
TextChunk
(value));
Microsoft.AspNetCore.Components.Endpoints.Tests (13)
Buffering\TextChunkListBuilderTest.cs (4)
17
builder.Add(new
TextChunk
("Item1"));
18
builder.Add(new
TextChunk
(new[] { 'I', 't', 'e', 'm', '2' }, charArrayScope));
21
builder.Add(new
TextChunk
("Item3"));
35
builder.Add(new
TextChunk
("Item4"));
Buffering\TextChunkPageTest.cs (4)
19
Assert.True(page.TryAdd(new
TextChunk
("Item1")));
20
Assert.True(page.TryAdd(new
TextChunk
("Item2")));
21
Assert.True(page.TryAdd(new
TextChunk
("Item3")));
25
Assert.False(page.TryAdd(new
TextChunk
("Item4")));
Buffering\TextChunkTest.cs (5)
16
var chunk = new
TextChunk
("string value");
24
var chunk = new
TextChunk
('x');
34
var chunk = new
TextChunk
(new ArraySegment<char>(chars, 1, 3), charArrayScope);
46
await new
TextChunk
(123).WriteToAsync(_writer, string.Empty, ref _tempBuffer);
47
await new
TextChunk
(456).WriteToAsync(_writer, string.Empty, ref _tempBuffer);
8 references to TextChunk
Microsoft.AspNetCore.Components.Endpoints (5)
Rendering\Buffering\TextChunkListBuilder.cs (1)
16
public void Add(
TextChunk
value)
Rendering\Buffering\TextChunkPage.cs (4)
9
private readonly
TextChunk
[] _buffer;
20
_buffer = new
TextChunk
[capacity];
23
public
TextChunk
[] Buffer => _buffer;
26
public bool TryAdd(
TextChunk
value)
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Buffering\TextChunkTest.cs (3)
16
var
chunk = new TextChunk("string value");
24
var
chunk = new TextChunk('x');
34
var
chunk = new TextChunk(new ArraySegment<char>(chars, 1, 3), charArrayScope);