diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-05-06 15:04:16 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-05-06 15:04:16 +0200 |
commit | 8cb5b3eac1bb669b8828777489d54e9d9057fe6f (patch) | |
tree | 50d578356013903c516cc03bdaa514168e2a4695 /src/Interleaver.h | |
parent | b74b895dd44f5a76d581b8dec65dbf76dd5cece9 (diff) | |
download | dabmux-8cb5b3eac1bb669b8828777489d54e9d9057fe6f.tar.gz dabmux-8cb5b3eac1bb669b8828777489d54e9d9057fe6f.tar.bz2 dabmux-8cb5b3eac1bb669b8828777489d54e9d9057fe6f.zip |
Stop using variable length array in Interleaver
Diffstat (limited to 'src/Interleaver.h')
-rw-r--r-- | src/Interleaver.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Interleaver.h b/src/Interleaver.h index 3afe8f0..2a32c47 100644 --- a/src/Interleaver.h +++ b/src/Interleaver.h @@ -26,13 +26,12 @@ # include "config.h" #endif +#include <vector> class Interleaver { public: Interleaver(unsigned short I, unsigned short M, bool reverse = false); - Interleaver(Interleaver& clone); - virtual ~Interleaver(); void setReverse(bool state); void encode(void* data, unsigned long size); @@ -48,7 +47,7 @@ private: unsigned long j; unsigned long index; unsigned long memSize; - char* mem; + std::vector<char> mem; bool reverse; }; |