MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / downloadReadyRead

Method downloadReadyRead

launcher/net/Download.cpp:282–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void Download::downloadReadyRead()
283{
284 if (m_state == State::Running) {
285 auto data = m_reply->readAll();
286 m_state = m_sink->write(data);
287 if (m_state == State::Failed) {
288 qCritical() << "Failed to process response chunk";
289 }
290 // qDebug() << "Download" << m_url.toString() << "gained" << data.size() << "bytes";
291 } else {
292 qCritical() << "Cannot write download data! illegal status " << m_status;
293 }
294}
295
296} // namespace Net
297

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected