23 writes to Memory
Microsoft.AspNetCore.Components.Forms (1)
src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
127Memory = array;
Microsoft.AspNetCore.Components.Server (4)
BlazorPack\SequenceOfT.cs (4)
365this.Memory = memoryOwner.Memory; 375this.Memory = array; 384this.Memory = default; 414this.Memory = this.AvailableMemory.Slice(0, this.Start + this.Length);
Microsoft.AspNetCore.Components.Web (1)
src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
127Memory = array;
Microsoft.AspNetCore.Http.Connections.Tests (1)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
10Memory = memory;
Microsoft.AspNetCore.HttpLogging (2)
src\Shared\Buffers\BufferSegment.cs (2)
30Memory = AvailableMemory.Slice(0, value); 80Memory = default;
Microsoft.AspNetCore.OutputCaching (2)
RecyclableReadOnlySequenceSegment.cs (2)
30obj.Memory = memory; 47obj.Memory = default;
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\Shared\Buffers\BufferSegment.cs (2)
30Memory = AvailableMemory.Slice(0, value); 80Memory = default;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
10Memory = memory;
src\Shared\test\Shared.Tests\runtime\Http3\VariableLengthIntegerHelperTests.cs (1)
156Memory = memory;
Microsoft.AspNetCore.Shared.Tests (1)
runtime\Http3\VariableLengthIntegerHelperTests.cs (1)
156Memory = memory;
Microsoft.AspNetCore.SignalR.Common.Tests (1)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
10Memory = memory;
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
10Memory = memory;
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
10Memory = memory;
Microsoft.AspNetCore.WebUtilities.Tests (1)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
10Memory = memory;
Microsoft.Extensions.Caching.Hybrid.Tests (1)
DistributedCacheTests.cs (1)
361Memory = new(arr, 5, arr.Length - 10);
System.IO.Pipelines (2)
System\IO\Pipelines\BufferSegment.cs (2)
30Memory = AvailableMemory.Slice(0, value); 89Memory = default;
59 references to Memory
Microsoft.AspNetCore.Components.Forms (2)
src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (2)
149next.RunningIndex = tail.RunningIndex + tail.Memory.Length; 153var sequence = new ReadOnlySequence<char>(this, startIndex, tail, tail.Memory.Length);
Microsoft.AspNetCore.Components.Server (3)
BlazorPack\SequenceOfT.cs (3)
307/// Gets the position within <see cref="ReadOnlySequenceSegment{T}.Memory"/> where the data starts. 313/// Gets the position within <see cref="ReadOnlySequenceSegment{T}.Memory"/> where the data ends. 423Requires.Range(count >= 0 && this.End + count <= this.Memory.Length, nameof(count));
Microsoft.AspNetCore.Components.Web (2)
src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (2)
149next.RunningIndex = tail.RunningIndex + tail.Memory.Length; 153var sequence = new ReadOnlySequence<char>(this, startIndex, tail, tail.Memory.Length);
Microsoft.AspNetCore.Http.Connections.Tests (2)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
17RunningIndex = RunningIndex + Memory.Length
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
146return new ReadOnlySequence<byte>(first, 0, last, last.Memory.Length);
Microsoft.AspNetCore.OutputCaching (5)
RecyclableReadOnlySequenceSegment.cs (2)
21public int Length => Memory.Length; 46var mem = obj.Memory;
RecyclableSequenceBuilder.cs (3)
38ReadOnlyMemory<byte> memory = _firstSegment.Memory.Slice(0, _currentSegmentIndex); 74var current = _currentSegment.Memory; 81current = _currentSegment.Memory;
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (1)
259_innerPipeWriter.Write(segment.Memory.Span);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (8)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
17RunningIndex = RunningIndex + Memory.Length
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
146return new ReadOnlySequence<byte>(first, 0, last, last.Memory.Length);
src\Shared\test\Shared.Tests\runtime\Http3\VariableLengthIntegerHelperTests.cs (6)
163RunningIndex = RunningIndex + Memory.Length 178memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length); 194memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length); 210memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length); 225memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length); 240memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
HttpParserBenchmark.cs (1)
29_multispanHeader = new ReadOnlySequence<byte>(segment, 0, next, next.Memory.Length);
Microsoft.AspNetCore.Shared.Tests (6)
runtime\Http3\VariableLengthIntegerHelperTests.cs (6)
163RunningIndex = RunningIndex + Memory.Length 178memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length); 194memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length); 210memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length); 225memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length); 240memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length);
Microsoft.AspNetCore.SignalR.Common.Tests (2)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
17RunningIndex = RunningIndex + Memory.Length
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
146return new ReadOnlySequence<byte>(first, 0, last, last.Memory.Length);
Microsoft.AspNetCore.SignalR.Microbenchmarks (2)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
17RunningIndex = RunningIndex + Memory.Length
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
146return new ReadOnlySequence<byte>(first, 0, last, last.Memory.Length);
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (2)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
17RunningIndex = RunningIndex + Memory.Length
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
146return new ReadOnlySequence<byte>(first, 0, last, last.Memory.Length);
Microsoft.AspNetCore.WebUtilities.Tests (2)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
17RunningIndex = RunningIndex + Memory.Length
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
146return new ReadOnlySequence<byte>(first, 0, last, last.Memory.Length);
Microsoft.Extensions.Caching.Hybrid.Tests (1)
DistributedCacheTests.cs (1)
364RunningIndex = previous.RunningIndex + previous.Memory.Length;
System.IO.Pipelines (4)
System\IO\Pipelines\StreamPipeReader.cs (2)
339FlushResult flushResult = await destination.WriteAsync(segment.Memory.Slice(segmentIndex), tokenSource.Token).ConfigureAwait(false); 410await destination.WriteAsync(segment.Memory.Slice(segmentIndex), tokenSource.Token).ConfigureAwait(false);
System\IO\Pipelines\StreamPipeWriter.cs (2)
324await InnerStream.WriteAsync(returnSegment.Memory, localToken).ConfigureAwait(false); 397InnerStream.Write(returnSegment.Memory.Span);
System.Memory (16)
System\Buffers\ReadOnlySequence.cs (6)
99(uint)startSegment.Memory.Length < (uint)startIndex || 100(uint)endSegment.Memory.Length < (uint)endIndex || 208int currentLength = startSegment.Memory.Length - startIndex; 319int currentLength = startSegment.Memory.Length - (int)startIndex; 402int currentLength = sliceStartSegment.Memory.Length - (int)sliceStartIndex; 562if (((ReadOnlySequenceSegment<T>)positionSequenceObject).Memory.Length - positionIndex < 0)
System\Buffers\ReadOnlySequence.Helpers.cs (9)
44memory = startSegment.Memory.Slice(startIndex); 48memory = startSegment.Memory.Slice(startIndex, endIndex - startIndex); 108ReadOnlyMemory<T> memory = ((ReadOnlySequenceSegment<T>)startObject).Memory; 184ReadOnlySpan<T> span = ((ReadOnlySequenceSegment<T>)startObject).Memory.Span; 247int currentLength = startSegment.Memory.Length - startIndex; 283int currentLength = startSegment.Memory.Length - startIndex; 314int memoryLength = currentSegment.Memory.Length; 425int currentLength = startSegment.Memory.Length - startIndex; 648first = segment.Memory.Span;
System\ThrowHelper.cs (1)
72else if ((uint)startSegment.Memory.Length < (uint)startIndex)