IOBuffer.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/core/data/buffer/IOBuffer.hpp"

IOBuffer

Predefined buffer implementation for I/O operations. Allocates buffer bytes using oatpp::base::memory::ThreadDistributedMemoryPool.

namespace oatpp { namespace data { namespace buffer { 
  class IOBuffer : public oatpp::base::Countable {}
}}}

Fields

Type Name Summary
v_int32 BUFFER_SIZE Buffer size constant.

Methods

Return Type Name Summary
[none] IOBuffer Constructor.
std::shared_ptr<IOBuffer> createShared Create shared IOBuffer.
[none] ~IOBuffer Virtual destructor.
void* getData Get pointer to buffer data.
v_int32 getSize Get buffer size.

IOBuffer::BUFFER_SIZE

Buffer size constant.

static constexpr v_int32 BUFFER_SIZE = 4096

IOBuffer::IOBuffer

Constructor.

IOBuffer()

IOBuffer::createShared

Create shared IOBuffer.

  • @return

static std::shared_ptr<IOBuffer> createShared()

IOBuffer::~IOBuffer

Virtual destructor.

~IOBuffer()

IOBuffer::getData

Get pointer to buffer data.

  • @return

void* getData()

IOBuffer::getSize

Get buffer size.

v_int32 getSize()