![]() |
XRootD
|
Interface to the Buffer's physical representation. Allow an interface to encapsulate the requirements of a buffer's memory, without worrying about the details. Various options exist for the specific buffer implemented, and are left to the sub-classes. More...
#include <IXrdCephBufferData.hh>
Public Member Functions | |
virtual | ~IXrdCephBufferData () |
virtual size_t | capacity () const =0 |
virtual ssize_t | invalidate ()=0 |
virtual bool | isValid () const =0 |
Currently occupied and valid space, which may be less than capacity. More... | |
virtual size_t | length () const =0 |
total available space More... | |
virtual const void * | raw () const =0 |
write data into the buffer, store the external offset More... | |
virtual void * | raw ()=0 |
virtual ssize_t | readBuffer (void *buf, off_t offset, size_t blen) const =0 |
set cache into an invalid state More... | |
virtual void | setLength (size_t len)=0 |
Currently occupied and valid space, which may be less than capacity. More... | |
virtual off_t | setStartingOffset (off_t offset)=0 |
virtual void | setValid (bool isValid)=0 |
virtual off_t | startingOffset () const =0 |
virtual ssize_t | writeBuffer (const void *buf, off_t offset, size_t blen, off_t externalOffset)=0 |
copy data from the internal buffer to buf More... | |
Interface to the Buffer's physical representation. Allow an interface to encapsulate the requirements of a buffer's memory, without worrying about the details. Various options exist for the specific buffer implemented, and are left to the sub-classes.
Definition at line 18 of file IXrdCephBufferData.hh.
|
inlinevirtual |
Definition at line 20 of file IXrdCephBufferData.hh.
|
pure virtual |
Implemented in XrdCephBuffer::XrdCephBufferDataSimple.
|
pure virtual |
Implemented in XrdCephBuffer::XrdCephBufferDataSimple.
|
pure virtual |
Currently occupied and valid space, which may be less than capacity.
Implemented in XrdCephBuffer::XrdCephBufferDataSimple.
|
pure virtual |
total available space
Implemented in XrdCephBuffer::XrdCephBufferDataSimple.
|
pure virtual |
write data into the buffer, store the external offset
Implemented in XrdCephBuffer::XrdCephBufferDataSimple.
Referenced by XrdCephBuffer::CephIOAdapterAIORaw::read(), XrdCephBuffer::CephIOAdapterRaw::read(), XrdCephBuffer::CephIOAdapterAIORaw::write(), and XrdCephBuffer::CephIOAdapterRaw::write().
|
pure virtual |
Implemented in XrdCephBuffer::XrdCephBufferDataSimple.
|
pure virtual |
set cache into an invalid state
Implemented in XrdCephBuffer::XrdCephBufferDataSimple.
|
pure virtual |
Currently occupied and valid space, which may be less than capacity.
Implemented in XrdCephBuffer::XrdCephBufferDataSimple.
Referenced by XrdCephBuffer::CephIOAdapterAIORaw::read(), and XrdCephBuffer::CephIOAdapterRaw::read().
|
pure virtual |
Implemented in XrdCephBuffer::XrdCephBufferDataSimple.
Referenced by XrdCephBuffer::CephIOAdapterAIORaw::read(), and XrdCephBuffer::CephIOAdapterRaw::read().
|
pure virtual |
Implemented in XrdCephBuffer::XrdCephBufferDataSimple.
Referenced by XrdCephBuffer::CephIOAdapterAIORaw::read(), and XrdCephBuffer::CephIOAdapterRaw::read().
|
pure virtual |
Implemented in XrdCephBuffer::XrdCephBufferDataSimple.
|
pure virtual |
copy data from the internal buffer to buf
Implemented in XrdCephBuffer::XrdCephBufferDataSimple.