10#ifndef SEMF_UTILS_CORE_BUFFER_LASTINDMABUFFER_H_
11#define SEMF_UTILS_CORE_BUFFER_LASTINDMABUFFER_H_
70 size_t count()
const override;
T * data() const
Returns the pointer to the first element of the data array.
size_t size() const
Returns the size of the buffer.
The LastInBuffer class implements a kind of circular buffer.
void setPos(size_t pos)
Sets the write position of the buffer.
size_t pos() const
Returns the current write position.
virtual void put(T data)
Writes data in the buffer.
virtual T & operator[](size_t pos) const
Returns the entry from a specific position in the buffer.
The LastInDmaBuffer class implements a kind of circular buffer.
virtual void put(T data)
Write data in the buffer.
virtual T & operator[](size_t pos) const
Returns the entry from a specific position in the buffer.
size_t size() const
Returns the size of the buffer.
size_t count() const override
Returns the number of entries stored in the buffer.
void setStride(size_t stride)
Set the stride between to entries of the same input.