13 instantiations of ArrayRange
Microsoft.AspNetCore.Components (2)
RenderTree\ArrayBuilderExtensions.cs (1)
13=> new ArrayRange<T>(builder.Buffer, builder.Count);
RenderTree\ArrayRange.cs (1)
44return new ArrayRange<T>(buffer, Count);
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsersRendererTypesInMethodBody.cs (1)
19var range = /*MMNewObject2*/new ArrayRange<string>(null, 0);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsersRendererTypesInMethodBody.cs (1)
19var range = /*MMNewObject2*/new ArrayRange<string>(null, 0);
Microsoft.AspNetCore.Components.Server.Tests (8)
Circuits\RenderBatchWriterTest.cs (8)
49new ArrayRange<int>(new[] { 123, int.MaxValue, int.MinValue, 456 }, 3), // Only use first 3 to show that param is respected 74new ArrayRange<RenderTreeDiff>(), 75new ArrayRange<RenderTreeFrame>(), 76new ArrayRange<int>(), 77new ArrayRange<ulong>(new ulong[] { 123, ulong.MaxValue, ulong.MinValue, 456 }, 3), // Only use first 3 to show that param is respected 101new ArrayRange<RenderTreeDiff>(new[] 159new ArrayRange<RenderTreeDiff>(new[] 199new ArrayRange<RenderTreeFrame>(new[] {
Microsoft.AspNetCore.Components.Tests (1)
RenderTreeUpdaterTest.cs (1)
187=> new ArrayRange<RenderTreeFrame>(frames, frames.Length);
85 references to ArrayRange
Microsoft.AspNetCore.Components (25)
Rendering\RenderTreeBuilder.cs (1)
773public ArrayRange<RenderTreeFrame> GetFrames() =>
Rendering\RenderTreeUpdater.cs (1)
20var frames = renderTreeBuilder.GetFrames();
RenderTree\ArrayBuilderExtensions.cs (3)
9/// Produces an <see cref="ArrayRange{T}"/> structure describing the current contents. 11/// <returns>The <see cref="ArrayRange{T}"/>.</returns> 12public static ArrayRange<T> ToRange<T>(this ArrayBuilder<T> builder)
RenderTree\ArrayRange.cs (2)
26/// Constructs an instance of <see cref="ArrayRange{T}"/>. 40public ArrayRange<T> Clone()
RenderTree\RenderBatch.cs (10)
17public ArrayRange<RenderTreeDiff> UpdatedComponents { get; } 24public ArrayRange<RenderTreeFrame> ReferenceFrames { get; } 29public ArrayRange<int> DisposedComponentIDs { get; } 34public ArrayRange<ulong> DisposedEventHandlerIDs { get; } 39public ArrayRange<NamedEventChange>? NamedEventChanges { get; } 42ArrayRange<RenderTreeDiff> updatedComponents, 43ArrayRange<RenderTreeFrame> referenceFrames, 44ArrayRange<int> disposedComponentIDs, 45ArrayRange<ulong> disposedEventHandlerIDs, 46ArrayRange<NamedEventChange>? changedNamedEvents)
RenderTree\Renderer.cs (5)
230protected ArrayRange<RenderTreeFrame> GetCurrentRenderTreeFrames(int componentId) => GetRequiredComponentState(componentId).CurrentRenderTree.GetFrames(); 803private Task InvokeRenderCompletedCalls(ArrayRange<RenderTreeDiff> updatedComponents, Task updateDisplayTask) 994private void RemoveEventHandlerIds(ArrayRange<ulong> eventHandlerIds, Task afterTaskIgnoreErrors) 1019async Task ContinueAfterTask(ArrayRange<ulong> eventHandlerIds, Task afterTaskIgnoreErrors) 1025var eventHandlerIdsClone = eventHandlerIds.Clone();
RenderTree\RenderTreeDiffBuilder.cs (3)
25ArrayRange<RenderTreeFrame> oldTree, 26ArrayRange<RenderTreeFrame> newTree) 40public static void DisposeFrames(RenderBatchBuilder batchBuilder, int componentId, ArrayRange<RenderTreeFrame> frames)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsersRendererTypesInMethodBody.cs (1)
19var range = /*MMNewObject2*/new ArrayRange<string>(null, 0);
Microsoft.AspNetCore.Components.Authorization.Tests (2)
src\Components\Shared\test\ArrayRangeExtensions.cs (1)
10public static IEnumerable<T> AsEnumerable<T>(this ArrayRange<T> source)
src\Components\Shared\test\TestRenderer.cs (1)
58public new ArrayRange<RenderTreeFrame> GetCurrentRenderTreeFrames(int componentId)
Microsoft.AspNetCore.Components.Endpoints (3)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (3)
86private void ProcessNamedSubmitEventRemovals(ArrayRange<NamedEventChange> changes) 110private void ProcessNamedSubmitEventAdditions(ArrayRange<NamedEventChange> changes) 149var frames = GetCurrentRenderTreeFrames(componentId);
Microsoft.AspNetCore.Components.Endpoints.Tests (5)
ImportMapTest.cs (5)
66var frames = _renderer.GetCurrentRenderTreeFrames(id); 113var frames = _renderer.GetCurrentRenderTreeFrames(id); 178var frames = _renderer.GetCurrentRenderTreeFrames(id); 237var frames = _renderer.GetCurrentRenderTreeFrames(id); 291public new ArrayRange<RenderTreeFrame> GetCurrentRenderTreeFrames(int componentId)
Microsoft.AspNetCore.Components.Forms.Tests (2)
src\Components\Shared\test\ArrayRangeExtensions.cs (1)
10public static IEnumerable<T> AsEnumerable<T>(this ArrayRange<T> source)
src\Components\Shared\test\TestRenderer.cs (1)
58public new ArrayRange<RenderTreeFrame> GetCurrentRenderTreeFrames(int componentId)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsersRendererTypesInMethodBody.cs (1)
19var range = /*MMNewObject2*/new ArrayRange<string>(null, 0);
Microsoft.AspNetCore.Components.Server (4)
src\Components\Shared\src\RenderBatchWriter.cs (4)
62int Write(in ArrayRange<RenderTreeDiff> diffs) 116int Write(in ArrayRange<RenderTreeFrame> frames) 205int Write(in ArrayRange<int> numbers) 220int Write(in ArrayRange<ulong> numbers)
Microsoft.AspNetCore.Components.Tests (21)
Rendering\RenderTreeBuilderTest.cs (9)
20var frames = builder.GetFrames(); 38var frames = builder.GetFrames(); 58var frames = builder.GetFrames(); 79var frames = builder.GetFrames(); 101var frames = builder.GetFrames(); 117var frames = builder.GetFrames(); 134var frames = builder.GetFrames(); 166var frames = builder.GetFrames(); 185var frames = builder.GetFrames();
RenderTreeDiffBuilderTest.cs (3)
2403var diffsInBatch = batch.UpdatedComponents; 2418var emptyFrames = renderTreeBuilder.GetFrames(); 2419var oldFrames = from.GetFrames();
RenderTreeUpdaterTest.cs (7)
24var frames = builder.GetFrames(); 52var frames = builder.GetFrames(); 84var frames = builder.GetFrames(); 114var frames = builder.GetFrames(); 139var frames = builder.GetFrames(); 169var frames = builder.GetFrames(); 186private static ArrayRange<RenderTreeFrame> BuildFrames(params RenderTreeFrame[] frames)
src\Components\Shared\test\ArrayRangeExtensions.cs (1)
10public static IEnumerable<T> AsEnumerable<T>(this ArrayRange<T> source)
src\Components\Shared\test\TestRenderer.cs (1)
58public new ArrayRange<RenderTreeFrame> GetCurrentRenderTreeFrames(int componentId)
Microsoft.AspNetCore.Components.Web (11)
HtmlRendering\StaticHtmlRenderer.cs (1)
104internal new ArrayRange<RenderTreeFrame> GetCurrentRenderTreeFrames(int componentId)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (10)
39var frames = GetCurrentRenderTreeFrames(componentId); 53private int RenderFrames(int componentId, TextWriter output, ArrayRange<RenderTreeFrame> frames, int position, int maxElements) 73ArrayRange<RenderTreeFrame> frames, 104private int RenderElement(int componentId, TextWriter output, ArrayRange<RenderTreeFrame> frames, int position) 182private int RenderScriptElementChildren(int componentId, TextWriter output, ArrayRange<RenderTreeFrame> frames, int position, int maxElements) 201private void RenderHiddenFieldForNamedSubmitEvent(int componentId, TextWriter output, ArrayRange<RenderTreeFrame> frames, int namedEventFramePosition) 258private static bool TryFindEnclosingElementFrame(ArrayRange<RenderTreeFrame> frames, int frameIndex, out int result) 275ArrayRange<RenderTreeFrame> frames, 377private int RenderChildren(int componentId, TextWriter output, ArrayRange<RenderTreeFrame> frames, int position, int maxElements) 387private int RenderChildComponent(TextWriter output, ArrayRange<RenderTreeFrame> frames, int position)
Microsoft.AspNetCore.Components.Web.Tests (6)
Forms\EditFormTest.cs (3)
115var editFormFrames = _testRenderer.GetCurrentRenderTreeFrames(editFormComponentId); 146var editFormFrames = _testRenderer.GetCurrentRenderTreeFrames(editFormComponentId); 196var editFormFrames = _testRenderer.GetCurrentRenderTreeFrames(editFormComponentId);
Forms\InputNumberTest.cs (1)
86var frames = _testRenderer.GetCurrentRenderTreeFrames(componentId);
src\Components\Shared\test\ArrayRangeExtensions.cs (1)
10public static IEnumerable<T> AsEnumerable<T>(this ArrayRange<T> source)
src\Components\Shared\test\TestRenderer.cs (1)
58public new ArrayRange<RenderTreeFrame> GetCurrentRenderTreeFrames(int componentId)
Microsoft.AspNetCore.Components.WebView (4)
src\Components\Shared\src\RenderBatchWriter.cs (4)
62int Write(in ArrayRange<RenderTreeDiff> diffs) 116int Write(in ArrayRange<RenderTreeFrame> frames) 205int Write(in ArrayRange<int> numbers) 220int Write(in ArrayRange<ulong> numbers)