protected virtual void Dispose(bool disposing) { if (disposing) { //Release managed resources and call Dispose for member variables } //Release unmanaged resources if (ownsNativeObject_) { //Logger.Log("Destroying history compact " + nativeInstance_.ToString("X") + " ..."); HistoryCompactNative.kth_chain_history_compact_destruct(nativeInstance_); //Logger.Log("History compact " + nativeInstance_.ToString("X") + " destroyed!"); } }
internal HistoryCompact(IntPtr nativeInstance, bool ownsNativeObject = true) { nativeInstance_ = nativeInstance; ownsNativeObject_ = ownsNativeObject; point_ = new Point(HistoryCompactNative.kth_chain_history_compact_get_point(nativeInstance_)); }