예제 #1
0
 public void Free(BufferPtr buffer)
 {
     lock (_bufferManager)
     {
         _bufferManager.Free(buffer);
     }
 }
예제 #2
0
        public AutoPtr(BufferPtr ptr, Action <BufferPtr> free)
        {
            Ptr = ptr;

            if (ptr.Ptr != IntPtr.Zero && free != null)
            {
                _free = free;
            }
            else
            {
                GC.SuppressFinalize(this);
            }
        }
예제 #3
0
 public void Free(BufferPtr data)
 {
     _standard.Free(data.Ptr);
 }
예제 #4
0
 public void Free(BufferPtr buffer)
 {
     this.Free(buffer.Ptr);
 }