コード例 #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;
 }