MCPcopy Create free account
hub / github.com/FastLED/FastLED / idToString

Method idToString

src/fl/net/http/stream_transport.cpp.hpp:63–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63fl::string HttpStreamTransport::idToString(const fl::json& id) {
64 if (id.is_int()) {
65 char buf[32];
66 fl::snprintf(buf, sizeof(buf), "%d", id.as_int().value());
67 return fl::string(buf);
68 }
69 if (id.is_string()) {
70 return id.as_string().value();
71 }
72 // Fallback for other types - use string representation
73 return id.to_string();
74}
75
76void HttpStreamTransport::parseChunkedMessages() {
77 for (;;) {

Callers

nothing calls this directly

Calls 8

snprintfFunction · 0.85
stringClass · 0.50
is_intMethod · 0.45
valueMethod · 0.45
as_intMethod · 0.45
is_stringMethod · 0.45
as_stringMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected