MCPcopy Create free account
hub / github.com/AndrewBelt/WaveEdit / write_string_callback

Function write_string_callback

src/db.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42
43static size_t write_string_callback(void *data, size_t size, size_t nmemb, void *p) {
44 std::string &text = *((std::string*)p);
45 char *dataStr = (char*) data;
46 size_t len = size * nmemb;
47 text.append(dataStr, len);
48 return len;
49}
50
51
52static CURL *db_curl_easy_init() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected