Updated
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@879 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -1,22 +1,12 @@
|
||||
#include "TestBlock.hpp"
|
||||
|
||||
template<typename T>
|
||||
TestBlock<T>::TestBlock()
|
||||
void TestBlock::process(IBuffer &in, IBuffer &out)
|
||||
{
|
||||
auto buf_in = reinterpret_cast<Buffer<DTIN>&>(in);
|
||||
auto buf_out = reinterpret_cast<Buffer<DTOUT>&>(out);
|
||||
|
||||
}
|
||||
|
||||
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);
|
||||
size_t toCopy = buf_in.len();
|
||||
buf_out.write(buf_in.data_r(), toCopy);
|
||||
buf_in.consume(toCopy);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user