|
HARDT - The Ham Radio DSP Toolkit
|
#include <hmemoryreader.h>


Public Member Functions | |
| HMemoryReader (T *buffer, size_t size, bool infinite=false) | |
| int | Read (T *dest, size_t blocksize) |
| bool | Command (HCommand *command) |
| void | Reset () |
| int | GetPosition () |
| int | GetSize () |
Public Member Functions inherited from HReader< T > | |
| virtual | ~HReader ()=default |
| virtual bool | Start () |
| virtual bool | Stop () |
| HReader< T > * | Reader () |
Public Member Functions inherited from HObject | |
| HObject () | |
Read from a fixed buffer
Will read a finite number of samples to from a fixed buffer, then return 0 on subsequent reads.
Most usefull while your are building or testing an application and need to read a single block of samples from a fixed bufer
|
inline |
Construct a new HMemoryReader
|
inlinevirtual |
Execute or carry through a command
Implements HReader< T >.
|
inline |
Get the current buffer position (index of next read start)
|
inline |
Get the size of the buffer
|
inlinevirtual |
Read a block of samples
Implements HReader< T >.
|
inline |
Reset the buffer position so next read is from the start of the buffer
1.8.17