MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / stringChunkCb

Function stringChunkCb

src/idf/idf_http_client.cpp:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98};
99
100bool stringChunkCb(const uint8_t *data, size_t len, void *ctx) {
101 StringSink *sink = static_cast<StringSink *>(ctx);
102 if (!sink || !sink->out) return false;
103 if (sink->out->length() + len > sink->maxSize) return false;
104 sink->out->concat(reinterpret_cast<const char *>(data), len);
105 return true;
106}
107} // namespace
108
109bool launcherHttpGetToString(const char *url, String &out, size_t maxSize) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected