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

Method open

common/script/zip_api.cpp:70–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 struct StdFileReader : TransferProto::FileReader {
69 FILE* f = nullptr;
70 bool open(const std::string& absPath) override
71 {
72 f = fopen(absPath.c_str(), "rb");
73 return f != nullptr;
74 }
75 size_t read(void* dst, size_t n) override { return f != nullptr ? fread(dst, 1, n, f) : 0; }
76 void close() override
77 {

Callers 1

sendZipStreamFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected