Implements sharing semantics using reference counting.
IpeBuffer::IpeBuffer | ( | ) |
Create empty buffer.
IpeBuffer::~IpeBuffer | ( | ) |
Destructor.
IpeBuffer::IpeBuffer | ( | const IpeBuffer & | rhs | ) |
Copy constructor. Constant time, buffer is shared.
IpeBuffer::IpeBuffer | ( | int | size | ) | [explicit] |
Create buffer of specified size.
IpeBuffer::IpeBuffer | ( | const char * | data, | |
int | size | |||
) | [explicit] |
Create buffer by copying the data.
char& IpeBuffer::operator[] | ( | int | index | ) | [inline] |
Character access.
const char& IpeBuffer::operator[] | ( | int | index | ) | const [inline] |
Character access (const version).
int IpeBuffer::size | ( | ) | const [inline] |
Return size of buffer;.
char* IpeBuffer::data | ( | ) | [inline] |
Return pointer to buffer data.
const char* IpeBuffer::data | ( | ) | const [inline] |
Return pointer to buffer data (const version).