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

Function toString

Sming/Components/ssl/src/CipherSuite.cpp:37–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35#undef XX
36
37String toString(CipherSuite id)
38{
39 auto entry = cipherSuiteNames[id];
40 if(entry) {
41 return String(entry);
42 }
43
44 char buf[32];
45 auto len = m_snprintf(buf, sizeof(buf), _F("{ 0x%04X }"), unsigned(id));
46 return String(buf, len);
47}
48
49} // namespace Ssl

Callers 3

onConnectMethod · 0.70
printToMethod · 0.70
printToMethod · 0.70

Calls 2

m_snprintfFunction · 0.85
StringClass · 0.50

Tested by

no test coverage detected