#include <repack_bits_bb_impl.h>
Constructor & Destructor Documentation
gr::blocks::repack_bits_bb_impl::repack_bits_bb_impl |
( |
int |
k, |
|
|
int |
l, |
|
|
const std::string & |
len_tag_key, |
|
|
bool |
align_output |
|
) |
| |
gr::blocks::repack_bits_bb_impl::~repack_bits_bb_impl |
( |
| ) |
|
Member Function Documentation
int gr::blocks::repack_bits_bb_impl::calculate_output_stream_length |
( |
const gr_vector_int & |
ninput_items | ) |
|
|
protectedvirtual |
true if the output shall be aligned, false if the input shall be aligned
Reimplemented from gr_tagged_stream_block.
Just like gr_block::general_work, but makes sure the input is valid.
The user must override work to define the signal processing code. Check the documentation for general_work() to see what happens here.
Like gr_sync_block, this calls consume() for you (it consumes ninput_items[i] items from the i-th port).
A note on tag propagation: The PDU length tags are handled by other functions, but all other tags are handled just as in any other gr_block
. So, most likely, you either set the tag propagation policy to TPP_DONT and handle the tag propagation manually, or you propagate tags through the scheduler and don't do anything here.
- Parameters
-
noutput_items | The size of the writable output buffer |
ninput_items | The exact size of the items on every input for this particular PDU. These will be consumed if a length tag key is provided! |
input_items | See gr_block |
output_items | See gr_block |
Implements gr_tagged_stream_block.
The documentation for this class was generated from the following file: