public void Free(BufferPtr buffer) { lock (_bufferManager) { _bufferManager.Free(buffer); } }
public AutoPtr(BufferPtr ptr, Action <BufferPtr> free) { Ptr = ptr; if (ptr.Ptr != IntPtr.Zero && free != null) { _free = free; } else { GC.SuppressFinalize(this); } }
public void Free(BufferPtr data) { _standard.Free(data.Ptr); }
public void Free(BufferPtr buffer) { this.Free(buffer.Ptr); }