MCPcopy Create free account
hub / github.com/QuipNetwork/cpp-sdk / WriteCallback

Function WriteCallback

src/common.cpp:63–67  ·  view source on GitHub ↗

Helper function for curl write callback

Source from the content-addressed store, hash-verified

61
62// Helper function for curl write callback
63static size_t WriteCallback(void *contents, size_t size, size_t nmemb,
64 std::string *userp) {
65 userp->append((char *)contents, size * nmemb);
66 return size * nmemb;
67}
68
69// Get chain ID from RPC endpoint
70uint64_t getChainId(const std::string &rpc_url) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected