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

Method StdByteReader

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

Source from the content-addressed store, hash-verified

85 struct StdByteReader : TransferProto::ByteReader {
86 FILE* f;
87 explicit StdByteReader(FILE* file) : f(file) {}
88 size_t read(void* dst, size_t n) override { return f != nullptr ? fread(dst, 1, n, f) : 0; }
89 };
90

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected