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