![]() |
CernVM-FS
2.10.0
|
#include <sink.h>
Public Member Functions | |
virtual | ~Sink () |
virtual int64_t | Write (const void *buf, uint64_t sz)=0 |
virtual int | Reset ()=0 |
A data sink that behaves like a writable file descriptor with a custom implementation.
Currently used by the Fetcher class to redirect writing into a cache manager.
TODO(jblomer): can all download destinations be implemented by inheriting from this class?
|
pure virtual |
Truncate all written data and start over at position zero.
Implemented in cvmfs::TransactionSink.
Referenced by download::DownloadManager::VerifyAndFinalize().
|
pure virtual |
Appends data to the sink, returns the number of bytes written or -errno.
Implemented in cvmfs::TransactionSink.
Referenced by download::CallbackCurlData(), and zlib::DecompressZStream2Sink().