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

Method get_hit_count

source/binding/NodeJS/src/apis/context.cpp:213–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213int32_t ContextImpl::get_hit_count(std::string node_name)
214{
215 MaaSize count = 0;
216 if (!MaaContextGetHitCount(context, node_name.c_str(), &count)) {
217 throw maajs::MaaError { "Context get_hit_count failed" };
218 }
219 // int32应该够了
220 return static_cast<int32_t>(count);
221}
222
223void ContextImpl::clear_hit_count(std::string node_name)
224{

Callers

nothing calls this directly

Calls 1

MaaContextGetHitCountFunction · 0.85

Tested by

no test coverage detected