MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / find

Method find

source/binding/NodeJS/src/apis/ext.h:60–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 std::optional<maajs::ObjectType> find(Handle* handle)
61 {
62 if (auto it = objs.find(handle); it != objs.end()) {
63 return it->second.Value();
64 }
65 else {
66 return std::nullopt;
67 }
68 }
69
70 void add(Handle* handle, maajs::ObjectType object) { objs[handle] = maajs::PersistentObject(object); }
71

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected