CBForest.Native.c4doc_get C# (CSharp) Method

c4doc_get() public static method

public static c4doc_get ( C4Database db, C4Slice docID, bool mustExist, C4Error outError ) : C4Document*
db C4Database
docID C4Slice
mustExist bool
outError C4Error
return C4Document*
        public static C4Document* c4doc_get(C4Database *db, C4Slice docID, bool mustExist, 
            C4Error *outError)
        {
            #if DEBUG
            var retVal = _c4doc_get(db, docID, mustExist, outError);
            if(retVal != null) {
                _AllocatedObjects[(IntPtr)retVal] = "C4Document";
                #if ENABLE_LOGGING
                Console.WriteLine("[c4doc_get] Allocated 0x{0}", ((IntPtr)retVal).ToString("X"));
                #endif
            }

            return retVal;
            #else
            return _c4doc_get(db, docID, mustExist, outError);
            #endif
        }

Same methods

Native::c4doc_get ( C4Database db, string docID, bool mustExist, C4Error outError ) : C4Document*
Native