示例#1
0
 public BufferHandle Retain()
 {
     if (_owner != null)
     {
         _owner.Retain();
         return(new BufferHandle(_owner));
     }
     return(new BufferHandle());
 }
 internal DisposableReservation(OwnedBuffer <T> owner)
 {
     _owner = owner;
     _owner.Retain();
 }
 public BufferHandle Retain()
 {
     _owner.Retain();
     return(new BufferHandle(_owner));
 }