MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / beginFile

Method beginFile

common/script/zip_api.cpp:130–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 return true;
129 }
130 bool beginFile(const std::string& relPath, uint32_t) override
131 {
132 ensureParents(relPath);
133 out = fopen((root + relPath).c_str(), "wb");
134 return out != nullptr;
135 }
136 bool writeFile(const void* data, size_t n) override { return out != nullptr && fwrite(data, 1, n, out) == n; }
137 void endFile() override
138 {

Callers 1

extractZipFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected