MCPcopy Create free account
hub / github.com/Kitware/CMake / Open

Method Open

Source/cmArchiveWrite.cxx:374–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374bool cmArchiveWrite::Open()
375{
376 if (!this->Error.empty()) {
377 return false;
378 }
379 if (archive_write_open(
380 this->Archive, this, nullptr,
381 reinterpret_cast<archive_write_callback*>(&Callback::Write),
382 nullptr) != ARCHIVE_OK) {
383 this->Error =
384 cmStrCat("archive_write_open: ", cm_archive_error_string(this->Archive));
385 return false;
386 }
387 return true;
388}
389
390cmArchiveWrite::~cmArchiveWrite()
391{

Callers

nothing calls this directly

Calls 4

archive_write_openFunction · 0.85
cm_archive_error_stringFunction · 0.85
cmStrCatFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected