Example #1
0
 public void Release()
 {
     --_refCount;
     if (_refCount == 0)
     {
         _writePosition = 0;
         _readPosition = 0;
         if (_allocator != null)
         {
             // Debug.LogFormat("<< ByteBuffer released {0}", GetHashCode());
             _allocator.Recycle(this);
         }
     }
 }