summaryrefslogtreecommitdiff
path: root/gr-fec/lib/async_encoder_impl.h
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2020-08-11 19:34:56 +0100
committerMartin Braun <martin@gnuradio.org>2020-08-14 03:34:54 -0700
commit188c3d3ba780a72227e3076a0a18ffcf10a7be82 (patch)
tree287580ddc45e16a9693ab8d9e94b54188d2c5420 /gr-fec/lib/async_encoder_impl.h
parent6d7bcb67b10f7db8e36ef12e9ed039511e8dbacd (diff)
fec/async_encoder: Remove manual memory management
Diffstat (limited to 'gr-fec/lib/async_encoder_impl.h')
-rw-r--r--gr-fec/lib/async_encoder_impl.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gr-fec/lib/async_encoder_impl.h b/gr-fec/lib/async_encoder_impl.h
index 096c6ac076..9d30155869 100644
--- a/gr-fec/lib/async_encoder_impl.h
+++ b/gr-fec/lib/async_encoder_impl.h
@@ -14,6 +14,7 @@
#include <gnuradio/blocks/pack_k_bits.h>
#include <gnuradio/blocks/unpack_k_bits.h>
#include <gnuradio/fec/async_encoder.h>
+#include <volk/volk_alloc.hh>
namespace gr {
namespace fec {
@@ -26,16 +27,16 @@ private:
pmt::pmt_t d_in_port;
pmt::pmt_t d_out_port;
- blocks::kernel::unpack_k_bits* d_unpack;
- blocks::kernel::pack_k_bits* d_pack;
+ blocks::kernel::unpack_k_bits d_unpack;
+ blocks::kernel::pack_k_bits d_pack;
bool d_packed;
bool d_rev_unpack;
bool d_rev_pack;
int d_mtu;
- uint8_t* d_bits_in;
- uint8_t* d_bits_out;
+ volk::vector<uint8_t> d_bits_in;
+ volk::vector<uint8_t> d_bits_out;
void encode_packed(pmt::pmt_t msg);
void encode_unpacked(pmt::pmt_t msg);