Delegate.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/core/data/stream/Delegate.hpp"

WriterDelegate

Stream writer delegate which can write data to stream provided.

namespace oatpp { namespace data { namespace stream { 
  class WriterDelegate {}
}}}

Methods

Return Type Name Summary
data::v_io_size writeToStream Write data to provided stream.

WriterDelegate::writeToStream

Write data to provided stream.

  • @param stream - stream to write data to.
  • @return - actual number of bytes written to stream. oatpp::data::v_io_size.

virtual data::v_io_size writeToStream(const std::shared_ptr<OutputStream>& stream) = 0

ReaderDelegate

Stream reader delegate which can read data from stream provided.

namespace oatpp { namespace data { namespace stream { 
  class ReaderDelegate {}
}}}

Methods

Return Type Name Summary
data::v_io_size readFromStream Read data from provided stream.

ReaderDelegate::readFromStream

Read data from provided stream.

virtual data::v_io_size readFromStream(const std::shared_ptr<InputStream>& stream) = 0