MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / WriteSnapshotData

Method WriteSnapshotData

database.cpp:415–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413
414
415int64_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
430void Database::TrimSnapshot(int64_t id)

Callers

nothing calls this directly

Calls 5

DatabaseExceptionClass · 0.85
c_strMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45
GetObjectMethod · 0.45

Tested by

no test coverage detected