39 class DataBuffer_Impl;
63 template<
typename Type>
66 template<
typename Type>
100 std::shared_ptr<DataBuffer_Impl> impl;
DataBuffer & operator=(const DataBuffer ©)
char & operator[](int i)
Returns a char in the buffer.
DataBuffer(unsigned int size)
char * get_data()
Returns a pointer to the data.
DataBuffer()
Constructs a data buffer of 0 size.
void set_size(unsigned int size)
Resize the buffer.
const char * get_data() const
General purpose data buffer.
Definition: databuffer.h:43
void set_capacity(unsigned int capacity)
Preallocate enough memory.
DataBuffer(const DataBuffer &data, unsigned int pos, unsigned int size)
DataBuffer(const void *data, unsigned int size)
const char & operator[](int i) const
bool is_null() const
Returns true if the buffer is 0 in size.
Type * get_data()
Definition: databuffer.h:64
const Type * get_data() const
Definition: databuffer.h:67
unsigned int get_capacity() const
Returns the capacity of the data buffer object.
const char & operator[](unsigned int i) const
char & operator[](unsigned int i)
unsigned int get_size() const
Returns the size of the data.