1 instantiation of PoolingPointerMemoryManager
System.Net.Security (1)
System\Net\Security\SslStream.cs (1)
731var manager = Interlocked.Exchange(ref field, null) ?? new PoolingPointerMemoryManager();
9 references to PoolingPointerMemoryManager
System.Net.Security (9)
System\Net\Security\SslStream.cs (9)
180private PoolingPointerMemoryManager? _readPointerMemoryManager; 181private PoolingPointerMemoryManager? _writePointerMemoryManager; 728private static unsafe PoolingPointerMemoryManager RentPointerMemoryManager(ref PoolingPointerMemoryManager? field, byte* pointer, int length) 731var manager = Interlocked.Exchange(ref field, null) ?? new PoolingPointerMemoryManager(); 737private static unsafe void ReturnPointerMemoryManager(ref PoolingPointerMemoryManager? field, PoolingPointerMemoryManager manager) 785PoolingPointerMemoryManager memoryManager = RentPointerMemoryManager(ref _readPointerMemoryManager, ptr, buffer.Length); 817PoolingPointerMemoryManager memoryManager = RentPointerMemoryManager(ref _writePointerMemoryManager, ptr, buffer.Length);