BodyInputStream.hpp

This File On Github
Ask A Question

API: latest
module: oatpp-curl
#include "oatpp-curl/io/BodyInputStream.hpp"

BodyInputStream

Wrapper over oatpp::curl::io::CurlBodyReader providing oatpp::data::stream::InputStream interface.

namespace oatpp { namespace curl { namespace io { 
  class BodyInputStream : public oatpp::data::stream::InputStream {}
}}}

Methods

Return Type Name Summary
[none] BodyInputStream Constructor.
v_io_size read Read data from stream. Implementation of oatpp::data::stream::InputStream::read method.
void setInputStreamIOMode Set stream I/O mode.
oatpp::data::stream::IOMode getInputStreamIOMode Get stream I/O mode.
oatpp::data::stream::Context& getInputStreamContext Get stream context.

BodyInputStream::BodyInputStream

Constructor.

  • @param reader
  • @param ioMode

BodyInputStream(const std::shared_ptr<CurlBodyReader> reader, oatpp::data::stream::IOMode ioMode)

BodyInputStream::read

Read data from stream. Implementation of oatpp::data::stream::InputStream::read method.

  • @param data - buffer to read data to.
  • @param count - buffer size.
  • @return - oatpp::v_io_size.

v_io_size read(void *data, v_buff_size count, async::Action& action) override

BodyInputStream::setInputStreamIOMode

Set stream I/O mode.

  • @throws

void setInputStreamIOMode(oatpp::data::stream::IOMode ioMode) override

BodyInputStream::getInputStreamIOMode

Get stream I/O mode.

  • @return

oatpp::data::stream::IOMode getInputStreamIOMode() override

BodyInputStream::getInputStreamContext

Get stream context.

oatpp::data::stream::Context& getInputStreamContext() override