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

Method write

launcher/net/FileSink.cpp:67–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67Task::State FileSink::write(QByteArray& data)
68{
69 if (!writeAllValidators(data) || m_output_file->write(data) != data.size()) {
70 qCritical() << "Failed writing into " + m_filename;
71 m_output_file->cancelWriting();
72 m_output_file.reset();
73 wroteAnyData = false;
74 return Task::State::Failed;
75 }
76
77 wroteAnyData = true;
78 return Task::State::Running;
79}
80
81Task::State FileSink::abort()
82{

Callers 11

receiveConnectionMethod · 0.45
appDebugOutputFunction · 0.45
ApplicationMethod · 0.45
installUpdatesMethod · 0.45
writeFunction · 0.45
writeAllValidatorsMethod · 0.45
downloadFinishedMethod · 0.45
downloadReadyReadMethod · 0.45
downloadFinishedMethod · 0.45
downloadReadyReadMethod · 0.45
writeJsonMethod · 0.45

Calls 2

sizeMethod · 0.45
resetMethod · 0.45

Tested by 1

writeJsonMethod · 0.36