MCPcopy Create free account
hub / github.com/comaps/comaps / Finish

Method Finish

libs/coding/files_container.cpp:449–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449void FilesContainerW::Finish()
450{
451 ASSERT(!m_finished, ());
452
453 uint64_t const curr = SaveCurrentSize();
454
455 FileWriter writer(m_name, FileWriter::OP_WRITE_EXISTING);
456 writer.Seek(0);
457 WriteToSink(writer, curr);
458 writer.Seek(curr);
459
460 sort(m_info.begin(), m_info.end(), LessInfo());
461
462 rw::Write(writer, m_info);
463
464 m_finished = true;
465}

Callers

nothing calls this directly

Calls 7

ASSERTFunction · 0.85
WriteToSinkFunction · 0.85
LessInfoClass · 0.85
WriteFunction · 0.70
SeekMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected