| 413 | |
| 414 | |
| 415 | int64_t Database::WriteSnapshotData(std::vector<int64_t> parents, Ref<BinaryView> file, const std::string& name, |
| 416 | const Ref<KeyValueStore>& data, bool autoSave, const std::function<bool(size_t, size_t)>& progress) |
| 417 | { |
| 418 | ProgressContext pctxt; |
| 419 | pctxt.callback = progress; |
| 420 | int64_t result = BNWriteDatabaseSnapshotData(m_object, parents.data(), parents.size(), file->GetObject(), |
| 421 | name.c_str(), data->GetObject(), autoSave, &pctxt, ProgressCallback); |
| 422 | if (result < 0) |
| 423 | { |
| 424 | throw DatabaseException("BNWriteDatabaseSnapshotData"); |
| 425 | } |
| 426 | return result; |
| 427 | } |
| 428 | |
| 429 | |
| 430 | void Database::TrimSnapshot(int64_t id) |
nothing calls this directly
no test coverage detected