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

Function recomputil_u32_value_hashmap_insert

src/game/recomp_data_api.cpp:217–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void recomputil_u32_value_hashmap_insert(uint8_t* rdram, recomp_context* ctx) {
218 uint32_t mapkey = _arg<0, uint32_t>(rdram, ctx);
219 uint32_t key = _arg<1, uint32_t>(rdram, ctx);
220 uint32_t value = _arg<2, uint32_t>(rdram, ctx);
221
222 U32ValueMap* map;
223 if (!u32_value_hashmaps.get(mapkey, &map)) {
224 HANDLE_INVALID_ERROR();
225 }
226
227 _return(ctx, map->insert(key, value));
228}
229
230void recomputil_u32_value_hashmap_get(uint8_t* rdram, recomp_context* ctx) {
231 uint32_t mapkey = _arg<0, uint32_t>(rdram, ctx);

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected