Exemplo n.º 1
0
 private byte[] get(NativeReadOptions options, NativeSlice keySlice) throws DBException {
   assertAllocated();
   NativeStdString result = new NativeStdString();
   try {
     checkStatus(DBJNI.Get(self, options, keySlice, result.pointer()));
     return result.toByteArray();
   } finally {
     result.delete();
   }
 }
Exemplo n.º 2
0
 private byte[] getProperty(NativeSlice nameSlice) {
   assertAllocated();
   NativeStdString result = new NativeStdString();
   try {
     if (DBJNI.GetProperty(self, nameSlice, result.pointer())) {
       return result.toByteArray();
     } else {
       return null;
     }
   } finally {
     result.delete();
   }
 }