|
ESPHome 2026.11.0-dev
|
Input that a decoder reads itself as it goes, so the whole image never has to be in memory at once. More...
#include <image_decoder.h>
Public Member Functions | |
| virtual | ~DecodeSource ()=default |
| virtual int32_t | read (uint8_t *buf, uint32_t len)=0 |
| Read up to len bytes at the current position. | |
| virtual bool | seek (uint32_t position)=0 |
| Move to a position counted from the start. Returns false on error. | |
Input that a decoder reads itself as it goes, so the whole image never has to be in memory at once.
Definition at line 59 of file image_decoder.h.
|
virtualdefault |
|
pure virtual |
Read up to len bytes at the current position.
Returns the number read, which is less than len, even 0, when no more has arrived yet or at the end of the input, or negative on error.
Implemented in esphome::online_image::DownloadSource.
|
pure virtual |
Move to a position counted from the start. Returns false on error.
Implemented in esphome::online_image::DownloadSource.