git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@875 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2022-05-24 20:10:23 +00:00
parent 752d3fef49
commit 509c16a46f
2 changed files with 43 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#include "TestBlock.hpp"
template<typename T>
TestBlock<T>::TestBlock()
{
}
template<typename T>
TestBlock<T>::~TestBlock()
{
}
template<typename T>
void TestBlock<T>::process(Buffer<T> &in, Buffer<T> &out)
{
size_t toCopy = in.len();
out.write(in.data_r(), toCopy);
in.consume(toCopy);
}
+21
View File
@@ -0,0 +1,21 @@
#ifndef TESTBLOCK_HPP
#define TESTBLOCK_HPP
#pragma once
#include <ABlock.hpp>
template <typename T>
class TestBlock : public ABlock<T>
{
public:
TestBlock();
~TestBlock();
void process(Buffer<T> &in, Buffer<T> &out);
private:
};
#endif