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(); } }
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(); } }