1 #ifndef __IXRD_CEPH_BUFFER_ALG_HH__
2 #define __IXRD_CEPH_BUFFER_ALG_HH__
12 #include <sys/types.h>
33 virtual ssize_t
read (
volatile void *buff, off_t offset,
size_t blen) = 0;
34 virtual ssize_t
write(
const void *buff, off_t offset,
size_t blen) = 0;
Interface to a holder of the main logic decisions of the buffering algortithm, decoupled from the buf...
virtual ssize_t write(const void *buff, off_t offset, size_t blen)=0
write data through the buffer
virtual ssize_t read(volatile void *buff, off_t offset, size_t blen)=0
read data through the buffer
virtual ~IXrdCephBufferAlg()
virtual ssize_t flushWriteCache()=0
remember to flush the cache on final writes
virtual ssize_t read_aio(XrdSfsAio *aoip)=0
possible aio based code
virtual ssize_t write_aio(XrdSfsAio *aoip)=0
possible aio based code
is a simple implementation of IXrdCephBufferData using std::vector<char> representation for the buffe...