MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / _receive_data_cb

Function _receive_data_cb

Extensions/PilotOSMachine/QPilotMachine.cpp:138–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138static size_t _receive_data_cb(void* contents, size_t size, size_t nmemb, void* stream)
139{
140 if (stream)
141 {
142 string* str = (string*)stream;
143 str->append((char*)contents, size * nmemb);
144 return size * nmemb;
145 }
146 return 0;
147}
148
149static QuantumHamiltonianData _json_to_hamiltonian(const std::string& hamiltonian_json)
150{

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected