CBForest.Native.c4view_delete C# (CSharp) Method

c4view_delete() public static method

Deletes the database file and closes/frees the C4View.
public static c4view_delete ( C4View view, C4Error outError ) : bool
view C4View The view to operate on
outError C4Error The error that occurred if the operation doesn't succeed
return bool
        public static bool c4view_delete(C4View *view, C4Error *outError)
        {
            #if DEBUG
            var ptr = (IntPtr)view;
            #if ENABLE_LOGGING
            if(ptr != IntPtr.Zero && !_AllocatedObjects.ContainsKey(ptr)) {
                Console.WriteLine("WARNING: [c4view_delete] freeing object 0x{0} that was not found in allocated list", ptr.ToString("X"));
            } else {
            #endif
                _AllocatedObjects.Remove(ptr);
            #if ENABLE_LOGGING
            }
            #endif
            #endif
            return _c4view_delete(view, outError);
        }
Native