ESPHome 2025.9.0-dev
Loading...
Searching...
No Matches
esphome::camera::BufferImpl Class Reference

Default implementation of Buffer Interface. More...

#include <buffer_impl.h>

Inheritance diagram for esphome::camera::BufferImpl:
esphome::camera::Buffer

Public Member Functions

 BufferImpl (size_t size)
 
 BufferImpl (CameraImageSpec *spec)
 
uint8_t * get_data_buffer () override
 
size_t get_data_length () override
 
 ~BufferImpl () override
 
- Public Member Functions inherited from esphome::camera::Buffer
virtual ~Buffer ()=default
 

Protected Attributes

RAMAllocator< uint8_t > allocator_
 
size_t size_ {}
 
uint8_t * data_ {}
 

Detailed Description

Default implementation of Buffer Interface.

Uses a RAMAllocator for memory reservation.

Definition at line 10 of file buffer_impl.h.

Constructor & Destructor Documentation

◆ BufferImpl() [1/2]

esphome::camera::BufferImpl::BufferImpl ( size_t size)
explicit

Definition at line 5 of file buffer_impl.cpp.

◆ BufferImpl() [2/2]

esphome::camera::BufferImpl::BufferImpl ( CameraImageSpec * spec)
explicit

Definition at line 10 of file buffer_impl.cpp.

◆ ~BufferImpl()

esphome::camera::BufferImpl::~BufferImpl ( )
override

Definition at line 15 of file buffer_impl.cpp.

Member Function Documentation

◆ get_data_buffer()

uint8_t * esphome::camera::BufferImpl::get_data_buffer ( )
inlineoverridevirtual

Implements esphome::camera::Buffer.

Definition at line 15 of file buffer_impl.h.

◆ get_data_length()

size_t esphome::camera::BufferImpl::get_data_length ( )
inlineoverridevirtual

Implements esphome::camera::Buffer.

Definition at line 16 of file buffer_impl.h.

Field Documentation

◆ allocator_

RAMAllocator<uint8_t> esphome::camera::BufferImpl::allocator_
protected

Definition at line 21 of file buffer_impl.h.

◆ data_

uint8_t* esphome::camera::BufferImpl::data_ {}
protected

Definition at line 23 of file buffer_impl.h.

◆ size_

size_t esphome::camera::BufferImpl::size_ {}
protected

Definition at line 22 of file buffer_impl.h.


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