public static DBTable open(Options options, string filename, long fileSize) { IntPtr cPtr = LeveldbPINVOKE.DBTable_open(Options.getCPtr(options), filename, fileSize); DBTable ret = (cPtr == IntPtr.Zero) ? null : new DBTable(cPtr, false); if (LeveldbPINVOKE.SWIGPendingException.Pending) throw LeveldbPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public Status Open(Options options, string name) { Status ret = new Status(LeveldbPINVOKE.DBAccessor_Open(swigCPtr, Options.getCPtr(options), name), true); if (LeveldbPINVOKE.SWIGPendingException.Pending) throw LeveldbPINVOKE.SWIGPendingException.Retrieve(); return ret; }
internal static HandleRef getCPtr(Options obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
public DBTableBuilder(Options options) : this(LeveldbPINVOKE.new_DBTableBuilder(Options.getCPtr(options)), true) { if (LeveldbPINVOKE.SWIGPendingException.Pending) throw LeveldbPINVOKE.SWIGPendingException.Retrieve(); }
public Status setOptions(Options options) { Status ret = new Status(LeveldbPINVOKE.DBTableBuilder_setOptions(swigCPtr, Options.getCPtr(options)), true); if (LeveldbPINVOKE.SWIGPendingException.Pending) throw LeveldbPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public static Status RepairDB(string dbname, Options options) { Status ret = new Status(LeveldbPINVOKE.RepairDB(dbname, Options.getCPtr(options)), true); if (LeveldbPINVOKE.SWIGPendingException.Pending) throw LeveldbPINVOKE.SWIGPendingException.Retrieve(); return ret; }