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


Public Member Functions | |
| HMemoryWriter (T *buffer, size_t size, bool infinite=false) | |
| HMemoryWriter (HWriterConsumer< T > *consumer, T *buffer, size_t size, bool infinite=false) | |
| int | Write (T *src, size_t blocksize) |
| void | SetWriter (HWriter< T > *writer) |
| bool | Command (HCommand *command) |
| void | Reset () |
| int | GetPosition () |
| int | GetSize () |
Public Member Functions inherited from HWriter< T > | |
| virtual | ~HWriter ()=default |
| virtual bool | Start () |
| virtual bool | Stop () |
| HWriter< T > * | Writer () |
Public Member Functions inherited from HObject | |
| HObject () | |
Public Member Functions inherited from HWriterConsumer< T > | |
| HWriterConsumer< T > * | Consumer () |
Write into a fixed buffer
Will write a finite number of samples to a fixed buffer, then return 0 on subsequent writes.
Most usefull while your are building or testing an application and need to write a single block of samples to a buffer for examination or custom handling.
|
inline |
Construct a new HMemoryWriter
|
inline |
Construct a new HMemoryWriter that registers with the upstream writer
|
inlinevirtual |
Execute or carry through a command
Implements HWriter< T >.
|
inline |
Get the current buffer position (index of next write start)
|
inline |
Get the size of the buffer
|
inline |
Reset the buffer position so next write is to the start of the buffer
|
inlinevirtual |
Implements HWriterConsumer::SetWriter()
Implements HWriterConsumer< T >.
|
inlinevirtual |
Write a block of samples
Implements HWriter< T >.
1.8.17