size_t m_bufSize
Stores the size of this buffer's memory block.
char * m_data
Stores a pointer to this buffer's memory block.
size_t GetSize() const
Gets the buffer's size, in bytes.
Buffer(size_t bufferSize)
Allocates a new buffer, which is the given number of bytes in size.
A buffer of bytes, with a fixed size.
const char & operator[](size_t i) const
Indexed access. Returns reference to a constant char.
Buffer()
Creates a buffer class that manages an empty block of memory.
char & operator[](size_t i)
Indexed access. Returns reference to mutable char.