1 write to _memory
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (1)
37
_memory
= memoryOwner.Memory;
6 references to _memory
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (6)
58
return CreateMemory(
_memory
.Length);
115
return
_memory
.Span;
141
if (byteOffset < 0 || byteOffset >
_memory
.Length)
143
MemoryPoolThrowHelper.ThrowArgumentOutOfRangeException(
_memory
.Length, byteOffset);
148
_memoryHandle = _memoryHandle ??
_memory
.Pin();
179
return MemoryMarshal.TryGetArray(
_memory
, out segment);