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

Class FileSink

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

Source from the content-addressed store, hash-verified

60 // ---- stdio-backed TransferProto seams --------------------------------
61
62 struct FileSink : TransferProto::ByteSink {
63 FILE* f;
64 explicit FileSink(FILE* file) : f(file) {}
65 bool sendAll(const void* data, size_t len) override { return fwrite(data, 1, len, f) == len; }
66 };
67
68 struct StdFileReader : TransferProto::FileReader {
69 FILE* f = nullptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected