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)
58return CreateMemory(_memory.Length); 115return _memory.Span; 141if (byteOffset < 0 || byteOffset > _memory.Length) 143MemoryPoolThrowHelper.ThrowArgumentOutOfRangeException(_memory.Length, byteOffset); 148_memoryHandle = _memoryHandle ?? _memory.Pin(); 179return MemoryMarshal.TryGetArray(_memory, out segment);