MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getStrategyForComponentPath

Method getStrategyForComponentPath

valdi/src/valdi/runtime/Resources/Bundle.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28ModuleLoadStrategy::~ModuleLoadStrategy() = default;
29
30const ModuleLoadStrategy::ComponentLoadStrategy* ModuleLoadStrategy::getStrategyForComponentPath(
31 const StringBox& componentPath) const {
32 const auto& it = _strategies.find(componentPath);
33 if (it == _strategies.end()) {
34 return nullptr;
35 }
36
37 return &it->second;
38}
39
40Result<Ref<ModuleLoadStrategy>> ModuleLoadStrategy::parse(const Byte* data, size_t length) {
41 auto result = jsonToValue(data, length);

Callers 1

Calls 2

endMethod · 0.65
findMethod · 0.45

Tested by

no test coverage detected