ESPHome  2025.2.0
Public Member Functions | Protected Attributes
esphome::online_image::DownloadBuffer Class Reference

#include <image_decoder.h>

Public Member Functions

 DownloadBuffer (size_t size)
 
virtual ~DownloadBuffer ()
 
uint8_t * data (size_t offset=0)
 
uint8_t * append ()
 
size_t unread () const
 
size_t size () const
 
size_t free_capacity () const
 
size_t read (size_t len)
 
size_t write (size_t len)
 
void reset ()
 
size_t resize (size_t size)
 

Protected Attributes

RAMAllocator< uint8_t > allocator_ {}
 
uint8_t * buffer_
 
size_t size_
 
size_t unread_
 Total number of downloaded bytes not yet read. More...
 

Detailed Description

Definition at line 88 of file image_decoder.h.

Constructor & Destructor Documentation

◆ DownloadBuffer()

esphome::online_image::DownloadBuffer::DownloadBuffer ( size_t  size)

Definition at line 28 of file image_decoder.cpp.

◆ ~DownloadBuffer()

virtual esphome::online_image::DownloadBuffer::~DownloadBuffer ( )
inlinevirtual

Definition at line 92 of file image_decoder.h.

Member Function Documentation

◆ append()

uint8_t* esphome::online_image::DownloadBuffer::append ( )
inline

Definition at line 96 of file image_decoder.h.

◆ data()

uint8_t * esphome::online_image::DownloadBuffer::data ( size_t  offset = 0)

Definition at line 37 of file image_decoder.cpp.

◆ free_capacity()

size_t esphome::online_image::DownloadBuffer::free_capacity ( ) const
inline

Definition at line 100 of file image_decoder.h.

◆ read()

size_t esphome::online_image::DownloadBuffer::read ( size_t  len)

Definition at line 45 of file image_decoder.cpp.

◆ reset()

void esphome::online_image::DownloadBuffer::reset ( )
inline

Definition at line 108 of file image_decoder.h.

◆ resize()

size_t esphome::online_image::DownloadBuffer::resize ( size_t  size)

Definition at line 53 of file image_decoder.cpp.

◆ size()

size_t esphome::online_image::DownloadBuffer::size ( ) const
inline

Definition at line 99 of file image_decoder.h.

◆ unread()

size_t esphome::online_image::DownloadBuffer::unread ( ) const
inline

Definition at line 98 of file image_decoder.h.

◆ write()

size_t esphome::online_image::DownloadBuffer::write ( size_t  len)
inline

Definition at line 103 of file image_decoder.h.

Field Documentation

◆ allocator_

RAMAllocator<uint8_t> esphome::online_image::DownloadBuffer::allocator_ {}
protected

Definition at line 113 of file image_decoder.h.

◆ buffer_

uint8_t* esphome::online_image::DownloadBuffer::buffer_
protected

Definition at line 114 of file image_decoder.h.

◆ size_

size_t esphome::online_image::DownloadBuffer::size_
protected

Definition at line 115 of file image_decoder.h.

◆ unread_

size_t esphome::online_image::DownloadBuffer::unread_
protected

Total number of downloaded bytes not yet read.

Definition at line 117 of file image_decoder.h.


The documentation for this class was generated from the following files: