MCPcopy Create free account
hub / github.com/citp/BlockSci / getScriptHeader

Method getScriptHeader

src/internal/script_access.hpp:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 const ScriptDataBase *getScriptHeader(uint32_t addressNum, DedupAddressType::Enum type) const {
95 static auto &scriptDataBaseTable = *[]() {
96 auto table = make_dynamic_table<DedupAddressType, internal::ScriptDataBaseFunctor>();
97 return new decltype(table){table};
98 }();
99 auto index = static_cast<size_t>(type);
100 return scriptDataBaseTable.at(index)(addressNum, *this);
101 }
102
103 std::array<uint32_t, DedupAddressType::size> scriptCounts() const {
104 return make_static_table<DedupAddressType, internal::ScriptCountFunctor>(*this);

Callers 5

ScriptBaseMethod · 0.80
initAddressesFunction · 0.80
getAddressesNestedFunction · 0.80
getAddressesMethod · 0.80
countOfTypeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected