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

Method get_node_data

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

Source from the content-addressed store, hash-verified

258}
259
260std::optional<std::string> ResourceImpl::get_node_data(std::string node_name)
261{
262 StringBuffer buffer;
263 if (!MaaResourceGetNodeData(resource, node_name.c_str(), buffer)) {
264 return std::nullopt;
265 }
266 return buffer.str();
267}
268
269std::optional<maajs::ValueType> ResourceImpl::get_node_data_parsed(std::string node_name)
270{

Callers

nothing calls this directly

Calls 2

MaaResourceGetNodeDataFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected