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

Method clear_sinks

source/binding/NodeJS/src/apis/resource.cpp:78–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void ResourceImpl::clear_sinks()
79{
80 MaaResourceClearSinks(resource);
81 for (const auto& [_, ctx] : sinks) {
82 delete ctx;
83 }
84 sinks.clear();
85}
86
87void ResourceImpl::set_inference_device(std::variant<std::string, int32_t> id)
88{

Callers

nothing calls this directly

Calls 2

MaaResourceClearSinksFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected