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

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