CernVM-FS
2.12.0
|
Public Member Functions | |
StreamingSink (void *buf, uint64_t size, uint64_t offset) | |
virtual | ~StreamingSink () |
virtual int64_t | Write (const void *buf, uint64_t sz) |
virtual int | Reset () |
virtual int | Purge () |
virtual bool | IsValid () |
virtual int | Flush () |
virtual bool | Reserve (size_t) |
virtual bool | RequiresReserve () |
virtual std::string | Describe () |
int64_t | GetNBytesStreamed () const |
Public Member Functions inherited from cvmfs::Sink | |
virtual | ~Sink () |
void | Release () |
Private Attributes | |
uint64_t | pos_ |
void * | window_buf_ |
uint64_t | window_size_ |
uint64_t | window_offset_ |
Additional Inherited Members | |
Protected Member Functions inherited from cvmfs::Sink | |
Sink (bool is_owner) | |
Protected Attributes inherited from cvmfs::Sink | |
bool | is_owner_ |
Definition at line 23 of file cache_stream.cc.
|
inline |
Definition at line 25 of file cache_stream.cc.
|
inlinevirtual |
Definition at line 33 of file cache_stream.cc.
|
inlinevirtual |
Return a string representation describing the type of sink and its status
Implements cvmfs::Sink.
Definition at line 73 of file cache_stream.cc.
|
inlinevirtual |
Commit data to the sink
Implements cvmfs::Sink.
Definition at line 70 of file cache_stream.cc.
|
inline |
Definition at line 79 of file cache_stream.cc.
|
inlinevirtual |
Implements cvmfs::Sink.
Definition at line 67 of file cache_stream.cc.
|
inlinevirtual |
Purges all resources leaving the sink in an invalid state. More aggressive version of Reset(). For some sinks and depending on owner status it might do the same as Reset().
Implements cvmfs::Sink.
Definition at line 66 of file cache_stream.cc.
|
inlinevirtual |
Returns if the specific sink type needs reservation of (data) space
Implements cvmfs::Sink.
Definition at line 72 of file cache_stream.cc.
|
inlinevirtual |
Reserves new space in sinks that require reservation (see RequiresReserve)
Successful if the requested size is smaller than already space reserved, or if the sink is the owner of the data and can allocate enough new space.
Fails if 1) sink is not the owner of the data and more than the current size is requested 2) more space is requested than allowed (max_size_)
Implements cvmfs::Sink.
Definition at line 71 of file cache_stream.cc.
|
inlinevirtual |
Truncate all written data and start over at position zero.
Implements cvmfs::Sink.
Definition at line 61 of file cache_stream.cc.
|
inlinevirtual |
Appends data to the sink
Implements cvmfs::Sink.
Definition at line 35 of file cache_stream.cc.
|
private |
Definition at line 82 of file cache_stream.cc.
|
private |
Definition at line 83 of file cache_stream.cc.
|
private |
Definition at line 85 of file cache_stream.cc.
|
private |
Definition at line 84 of file cache_stream.cc.