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

Method GetFiles

project.cpp:454–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452
453
454std::vector<Ref<ProjectFile>> Project::GetFiles() const
455{
456 size_t count;
457 BNProjectFile** files = BNProjectGetFiles(m_object, &count);
458
459 std::vector<Ref<ProjectFile>> result;
460 result.reserve(count);
461 for (size_t i = 0; i < count; i++)
462 {
463 result.push_back(new ProjectFile(BNNewProjectFileReference(files[i])));
464 }
465
466 BNFreeProjectFileList(files, count);
467 return result;
468}
469
470
471Ref<ProjectFile> Project::GetFileById(const std::string& id) const

Callers 2

AddProjectFolderMethod · 0.45
GetPrimaryFilePathMethod · 0.45

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected