MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / WriteCallback

Function WriteCallback

src/platform/linux/http_transport_linux.cpp:133–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133static size_t WriteCallback(const char* data, size_t size, size_t nmemb, std::string* out) {
134 size_t total = size * nmemb;
135 if (out->size() + total > kMaxResponseSize) return 0;
136 out->append(data, total);
137 return total;
138}
139
140static size_t HeaderCallback(const char* data, size_t size, size_t nmemb, std::string* out) {
141 size_t total = size * nmemb;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected