50 uint8_t* Buffer::getData() {
return buffer_; }
51 uint32_t Buffer::getCapacity()
const {
return capacity_; }
52 uint32_t Buffer::getSize()
const {
return size_; }
59 void Buffer::ensureCapacity(
uint32_t capacity) {
60 if (capacity <= capacity_)
66 while (capacity_ < capacity)
70 buffer_ = (
uint8_t*) realloc(buffer_, capacity_);