MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / writeBlock

Method writeBlock

Telegram/SourceFiles/export/output/export_output_html.cpp:998–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

996}
997
998Result HtmlWriter::Wrap::writeBlock(const QByteArray &block) {
999 Expects(!_closed);
1000
1001 const auto result = [&] {
1002 if (block.isEmpty()) {
1003 return _file.writeBlock(block);
1004 } else if (_file.empty()) {
1005 return _file.writeBlock(_composedStart + block);
1006 }
1007 return _file.writeBlock(block);
1008 }();
1009 if (!result) {
1010 _closed = true;
1011 }
1012 return result;
1013}
1014
1015QByteArray HtmlWriter::Wrap::pushHeader(
1016 const QByteArray &header,

Callers 15

closeMethod · 0.45
startMethod · 0.45
writePreparedPersonalMethod · 0.45
writeUserpicsStartMethod · 0.45
writeUserpicsSliceMethod · 0.45
writeStoriesStartMethod · 0.45
writeStoriesSliceMethod · 0.45
writeSavedContactsMethod · 0.45
writeFrequentContactsMethod · 0.45
writeSessionsMethod · 0.45

Calls 2

isEmptyMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected