Default in-memory read callback.
| 45 | |
| 46 | // Default in-memory read callback. |
| 47 | size_t read_memory_callback(void *contents, size_t size, size_t nmemb, void *userp) { |
| 48 | const size_t realsize = size * nmemb; |
| 49 | auto* const mem = static_cast<std::istream*>(userp); |
| 50 | mem->read(static_cast<char*>(contents), realsize); |
| 51 | return static_cast<size_t>(mem->gcount()); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | namespace curl { |
nothing calls this directly
no outgoing calls
no test coverage detected