Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 internal static HandleRef getCPtr(Options obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemplo n.º 4
0
 public DBTableBuilder(Options options)
     : this(LeveldbPINVOKE.new_DBTableBuilder(Options.getCPtr(options)), true)
 {
     if (LeveldbPINVOKE.SWIGPendingException.Pending) throw LeveldbPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 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;
 }