MCPcopy Create free account
hub / github.com/SmingHub/Sming / getValue

Method getValue

Sming/Core/Data/Stream/TemplateStream.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29String TemplateStream::getValue(const char* name)
30{
31 String s = static_cast<const Variables&>(templateData)[name];
32 if(!s && getValueCallback) {
33 s = getValueCallback(name);
34 }
35 debug_d("[TMPL] value '%s' %sfound: \"%s\"", name, s ? "" : "NOT ", s.c_str());
36 return s;
37}
38
39uint16_t TemplateStream::readMemoryBlock(char* data, int bufSize)
40{

Callers

nothing calls this directly

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected