23 #ifndef __ccxx_AbstractBuffer_hxx 24 #define __ccxx_AbstractBuffer_hxx 107 #include <commonc++/AbstractBufferImpl.h++> 111 #endif // __ccxx_AbstractBuffer_hxx
const T * getBase() const
Get a pointer to the base of the buffer.
Definition: AbstractBuffer.h++:77
AbstractBuffer(uint_t size)
Construct a new buffer with the given size.
virtual uint_t getRemaining() const =0
Get the number of elements remaining in the buffer.
virtual ~AbstractBuffer()
Destructor.
unsigned int uint_t
An alias for unsigned int.
Definition: Integers.h++:74
virtual bool hasRemaining() const
Test if the buffer has elements available to be read or written.
Definition: AbstractBuffer.h++:69
T * getBase()
Get a pointer to the base of the buffer.
Definition: AbstractBuffer.h++:73
bool _owner
Whether this object owns the raw buffer.
Definition: AbstractBuffer.h++:100
T * _data
A pointer to the raw buffer.
Definition: AbstractBuffer.h++:96
virtual void clear()
Clear the buffer.
uint_t _size
The size of the buffer.
Definition: AbstractBuffer.h++:98
An abstract base class for buffers.
Definition: AbstractBuffer.h++:38
Definition: AllocationMap.c++:25
virtual void setSize(uint_t newSize)
Resize the buffer.
uint_t getSize() const
Get the size of the buffer.
Definition: AbstractBuffer.h++:62