diff --git a/radio/processor/test/TestBlock.cpp b/radio/processor/test/TestBlock.cpp new file mode 100644 index 0000000..3fa73b4 --- /dev/null +++ b/radio/processor/test/TestBlock.cpp @@ -0,0 +1,22 @@ +#include "TestBlock.hpp" + +template +TestBlock::TestBlock() +{ + +} + +template +TestBlock::~TestBlock() +{ + +} + +template +void TestBlock::process(Buffer &in, Buffer &out) +{ + size_t toCopy = in.len(); + out.write(in.data_r(), toCopy); + in.consume(toCopy); +} + diff --git a/radio/processor/test/TestBlock.hpp b/radio/processor/test/TestBlock.hpp new file mode 100644 index 0000000..9d01440 --- /dev/null +++ b/radio/processor/test/TestBlock.hpp @@ -0,0 +1,21 @@ +#ifndef TESTBLOCK_HPP +#define TESTBLOCK_HPP + +#pragma once + +#include + +template +class TestBlock : public ABlock +{ +public: + TestBlock(); + ~TestBlock(); + + void process(Buffer &in, Buffer &out); + +private: + +}; + +#endif \ No newline at end of file