20 #ifndef RIPPLE_SERVER_WRITER_H_INCLUDED
21 #define RIPPLE_SERVER_WRITER_H_INCLUDED
23 #include <boost/asio/buffer.hpp>
virtual ~Writer()=default
virtual std::vector< boost::asio::const_buffer > data()=0
Returns a ConstBufferSequence representing the input sequence.
virtual void consume(std::size_t bytes)=0
Removes bytes from the input sequence.
virtual bool prepare(std::size_t bytes, std::function< void(void)> resume)=0
Add data to the input sequence.
virtual bool complete()=0
Returns true if there is no more data to pull.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.