23 #ifndef INCLUDED_DTV_ATSC_INTERLEAVER_FIFO_H
24 #define INCLUDED_DTV_ATSC_INTERLEAVER_FIFO_H
31 template<
class symbol_type>
42 symbol_type
stuff(symbol_type input) {
61 template<
class symbol_type>
66 m_fifo =
new symbol_type[size];
67 memset (m_fifo, 0, m_size *
sizeof(symbol_type));
70 template<
class symbol_type>
76 template<
class symbol_type>
void
80 memset (m_fifo, 0, m_size *
sizeof (symbol_type));
Definition: atsc_interleaver_fifo.h:32
~interleaver_fifo()
Definition: atsc_interleaver_fifo.h:71
symbol_type stuff(symbol_type input)
stuff a symbol into the fifo and return the oldest
Definition: atsc_interleaver_fifo.h:42
symbol_type * m_fifo
Definition: atsc_interleaver_fifo.h:58
void reset()
reset interleaver (flushes contents and resets commutator)
Definition: atsc_interleaver_fifo.h:77
unsigned int m_size
Definition: atsc_interleaver_fifo.h:56
interleaver_fifo(unsigned int size)
Definition: atsc_interleaver_fifo.h:62
unsigned int m_position
Definition: atsc_interleaver_fifo.h:57