arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
FileSpoolStorage< FileT > Class Template Reference

Adapts any concrete file/stream type to SpoolStorage - same role as FileSeekableSource, just adding write(). This is the one place the concrete file type appears for spool-backed storage. More...

#include <SampleTableStore.h>

Inheritance diagram for FileSpoolStorage< FileT >:
SpoolStorage SeekableSource

Public Member Functions

 FileSpoolStorage (FileT &file)
 
size_t readBytes (uint8_t *data, size_t len) override
 
bool seek (size_t pos) override
 
size_t write (const uint8_t *data, size_t len) override
 

Protected Attributes

FileT * p_file
 

Detailed Description

template<typename FileT>
class audio_tools::FileSpoolStorage< FileT >

Adapts any concrete file/stream type to SpoolStorage - same role as FileSeekableSource, just adding write(). This is the one place the concrete file type appears for spool-backed storage.

Constructor & Destructor Documentation

◆ FileSpoolStorage()

template<typename FileT >
FileSpoolStorage ( FileT &  file)
inline

Member Function Documentation

◆ readBytes()

template<typename FileT >
size_t readBytes ( uint8_t *  data,
size_t  len 
)
inlineoverridevirtual

Implements SeekableSource.

◆ seek()

template<typename FileT >
bool seek ( size_t  pos)
inlineoverridevirtual

Implements SeekableSource.

◆ write()

template<typename FileT >
size_t write ( const uint8_t *  data,
size_t  len 
)
inlineoverridevirtual

Implements SpoolStorage.

Member Data Documentation

◆ p_file

template<typename FileT >
FileT* p_file
protected

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