MCPcopy Create free account
hub / github.com/BanjoRecomp/BanjoRecomp / get

Method get

src/game/recomp_data_api.cpp:114–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 using key_t = typename dod::slot_map32<ValueType>::key;
113public:
114 bool get(uint32_t key, ValueType** out) {
115 std::lock_guard lock{mutex};
116 ValueType* ret = map.get(key_t{key});
117 *out = ret;
118 return ret != nullptr;
119 }
120
121 uint32_t create() {
122 std::lock_guard lock{mutex};

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected