19 #ifndef INCLUDE_RCF_XORFILTER_HPP
20 #define INCLUDE_RCF_XORFILTER_HPP
24 #include <RCF/ByteBuffer.hpp>
25 #include <RCF/Filter.hpp>
29 class XorFilter :
public IdentityFilter
32 int getFilterId()
const;
35 void read(
const ByteBuffer &byteBuffer, std::size_t bytesRequested);
36 void write(
const std::vector<ByteBuffer> &byteBuffers);
37 void onReadCompleted(
const ByteBuffer &byteBuffer);
38 void onWriteCompleted(std::size_t bytesTransferred);
41 std::size_t mTotalBytes;
42 std::vector<ByteBuffer> mByteBuffers;
43 std::vector<ByteBuffer> mTempByteBuffers;
49 #endif // ! INCLUDE_RCF_XORFILTER_HPP