CBForest.Native.c4db_enumerateChanges C# (CSharp) Method

c4db_enumerateChanges() public static method

Creates an enumerator ordered by sequence. Caller is responsible for freeing the enumerator when finished with it.
public static c4db_enumerateChanges ( C4Database db, ulong since, C4EnumeratorOptions options, C4Error outError ) : C4DocEnumerator*
db C4Database The database to operate on
since ulong The sequence number to start _after_.Pass 0 to start from the beginning.
options C4EnumeratorOptions Enumeration options (NULL for defaults).
outError C4Error The error that occurred if the operation doesn't succeed
return C4DocEnumerator*
        public static C4DocEnumerator* c4db_enumerateChanges(C4Database* db, ulong since, C4EnumeratorOptions* options, 
            C4Error* outError)
        {
            #if DEBUG
            var retVal = _c4db_enumerateChanges(db, since, options, outError);
            if(retVal != null) {
                _AllocatedObjects[(IntPtr)retVal] = "C4DocEnumerator";
                #if ENABLE_LOGGING
                Console.WriteLine("[c4db_enumerateChanges] Allocated 0x{0}", ((IntPtr)retVal).ToString("X"));
                #endif
            }

            return retVal;
            #else
            return _c4db_enumerateChanges(db, since, options, outError);
            #endif
        }
Native