5 #ifndef CVMFS_NETWORK_SINK_FILE_H_
6 #define CVMFS_NETWORK_SINK_FILE_H_
28 file_(destination_file) { }
30 file_(destination_file) { }
40 virtual int64_t
Write(
const void *buf, uint64_t sz);
65 return fflush(
file_) == 0 ? 0 : -errno;
107 void Adopt(FILE *
file,
bool is_owner =
true);
119 #endif // CVMFS_NETWORK_SINK_FILE_H_
FileSink(FILE *destination_file, bool is_owner)
virtual std::string Describe()
virtual bool RequiresReserve()
void Adopt(FILE *file, bool is_owner=true)
virtual int64_t Write(const void *buf, uint64_t sz)
virtual bool Reserve(size_t)
FileSink(FILE *destination_file)