MCPcopy Create free account
hub / github.com/avast/retdec / getFirstBytecode

Method getFirstBytecode

src/common/language.cpp:75–86  ·  view source on GitHub ↗

* @return Pointer to language or @c nullptr if not found. */

Source from the content-addressed store, hash-verified

73 * @return Pointer to language or @c nullptr if not found.
74 */
75const Language* LanguageContainer::getFirstBytecode() const
76{
77 for (const auto& item : *this)
78 {
79 if (item.isBytecode())
80 {
81 return &item;
82 }
83 }
84
85 return nullptr;
86}
87
88bool LanguageContainer::hasLanguage(const std::string& sub) const
89{

Callers 1

TEST_FFunction · 0.80

Calls 1

isBytecodeMethod · 0.80

Tested by 1

TEST_FFunction · 0.64