7static const char *
const TAG =
"online_image.download_buffer";
13 ESP_LOGE(TAG,
"Initial allocation of download buffer failed!");
19 if (offset > this->
size_) {
20 ESP_LOGE(TAG,
"Tried to access beyond download buffer bounds!!!");
37 if (this->
size_ >= size) {
48 ESP_LOGE(TAG,
"allocation of %zu bytes failed. Biggest block in heap: %zu Bytes",
size,
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)
RAMAllocator< uint8_t > allocator_
size_t resize(size_t size)