예제 #1
0
 public PooledMemory(IMemoryOwner <byte> owner, TestMemoryPool pool)
 {
     _owner          = owner;
     _pool           = pool;
     _leaser         = Environment.StackTrace;
     _referenceCount = 1;
 }
예제 #2
0
 public PooledMemory(MemoryManager <byte> manager, TestMemoryPool pool)
 {
     _manager        = manager;
     _pool           = pool;
     _leaser         = Environment.StackTrace;
     _referenceCount = 1;
 }
예제 #3
0
 public PooledMemory(OwnedMemory <byte> ownedMemory, TestMemoryPool pool)
 {
     _ownedMemory = ownedMemory;
     _pool        = pool;
     _leaser      = Environment.StackTrace;
 }