7static const char *
const TAG =
"online_image.download_buffer";
14 ESP_LOGE(TAG,
"Initial allocation of download buffer failed!");
20 if (offset > this->
size_) {
21 ESP_LOGE(TAG,
"Tried to access beyond download buffer bounds!!!");
38 if (this->
size_ >= size) {
50 ESP_LOGE(TAG,
"allocation of %zu bytes failed. Biggest block in heap: %zu Bytes",
size,
An STL allocator that uses SPI or internal RAM.
void deallocate(T *p, size_t n)
size_t get_max_free_block_size() const
Return the maximum size block this allocator could allocate.
DownloadBuffer(size_t size)
size_t unread_
Total number of downloaded bytes not yet read.
uint8_t * data(size_t offset=0)
size_t resize(size_t size)