summaryrefslogtreecommitdiff
path: root/gr-fec/lib/cc_decoder_impl.h
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2020-08-29 23:18:16 +0100
committerMartin Braun <martin@gnuradio.org>2020-09-07 05:14:14 -0700
commitd2c9de98b52e7e9a4918190b1e7079496d2a13b6 (patch)
tree74b9de2495d7e4ab79dd13bbf6338ca2fb1e2501 /gr-fec/lib/cc_decoder_impl.h
parent0d1d600ab622075a4e56e66642e67fc5c983450e (diff)
fec: Remove manual memory management
This removes almost all manual memory management in gr-fec/. `scl_list` is a bit of magic, so requires more thinking.
Diffstat (limited to 'gr-fec/lib/cc_decoder_impl.h')
-rw-r--r--gr-fec/lib/cc_decoder_impl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gr-fec/lib/cc_decoder_impl.h b/gr-fec/lib/cc_decoder_impl.h
index e39cd9846a..d7d236da21 100644
--- a/gr-fec/lib/cc_decoder_impl.h
+++ b/gr-fec/lib/cc_decoder_impl.h
@@ -43,7 +43,7 @@ private:
unsigned int tailsize);
int find_endstate();
- unsigned char* Branchtab;
+ volk::vector<unsigned char> d_branchtab;
unsigned char Partab[256];
@@ -85,6 +85,10 @@ public:
bool padded = false);
~cc_decoder_impl();
+ // Disable copy because of the raw pointers.
+ cc_decoder_impl(const cc_decoder_impl&) = delete;
+ cc_decoder_impl& operator=(const cc_decoder_impl&) = delete;
+
void generic_work(void* inbuffer, void* outbuffer);
bool set_frame_size(unsigned int frame_size);
double rate();