20 bool init(
size_t total_length);
28 void fill(uint8_t value)
const;
31 size_t size()
const {
return this->total_length_; }
37 bool is_valid()
const {
return this->buffers_ !=
nullptr && this->buffer_count_ > 0; }
40 uint8_t **buffers_{
nullptr};
41 size_t buffer_count_{0};
42 size_t buffer_size_{0};
43 size_t total_length_{0};
A SplitBuffer allocates a large memory buffer potentially as multiple smaller buffers to facilitate a...
void fill(uint8_t value) const
Fill the entire buffer with a single byte value.
size_t get_buffer_count() const
uint8_t & operator[](size_t index)