CBForest.Native.c4indexer_end C# (CSharp) Method

c4indexer_end() public static method

Finishes an indexing task and frees the indexer reference.
public static c4indexer_end ( C4Indexer indexer, bool commit, C4Error outError ) : bool
indexer C4Indexer The indexer to operate on
commit bool True to commit changes to the indexes, false to abort
outError C4Error The error that occurred if the operation doesn't succeed
return bool
        public static bool c4indexer_end(C4Indexer *indexer, bool commit, C4Error *outError)
        {
            #if DEBUG
            var ptr = (IntPtr)indexer;
            #if ENABLE_LOGGING
            if(ptr != IntPtr.Zero && !_AllocatedObjects.ContainsKey(ptr)) {
                Console.WriteLine("WARNING: [c4indexer_end] 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 _c4indexer_end(indexer, commit, outError);
        }
Native