MCPcopy Create free account
hub / github.com/DistroAV/DistroAV / string_write

Function string_write

src/obs-support/remote-text.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32using Curl = unique_ptr<CURL, decltype(curl_deleter)>;
33
34static size_t string_write(char *ptr, size_t size, size_t nmemb, string &str)
35{
36 size_t total = size * nmemb;
37 if (total)
38 str.append(ptr, total);
39 return total;
40}
41
42void RemoteTextThread::run()
43{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected