5 #ifndef CVMFS_NETWORK_SINK_PATH_H_
6 #define CVMFS_NETWORK_SINK_PATH_H_
32 explicit PathSink(
const std::string &destination_path);
42 virtual int64_t
Write(
const void *buf, uint64_t sz) {
43 return sink_->Write(buf, sz);
53 return sink_->Reset();
62 return sink_->IsValid();
71 return sink_->Flush();
91 return sink_->Reserve(size);
101 return sink_->RequiresReserve();
119 #endif // CVMFS_NETWORK_SINK_PATH_H_
virtual bool RequiresReserve()
virtual int64_t Write(const void *buf, uint64_t sz)
UniquePtr< FileSink > sink_
virtual bool Reserve(size_t size)
virtual std::string Describe()
PathSink(const std::string &destination_path)