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