RESTinio
|
A base class for writable items. More...
#include <buffers.hpp>
Public Member Functions | |
writable_base_t ()=default | |
writable_base_t (const writable_base_t &)=default | |
writable_base_t (writable_base_t &&)=default | |
writable_base_t & | operator= (const writable_base_t &)=delete |
writable_base_t & | operator= (writable_base_t &&)=delete |
virtual | ~writable_base_t () |
virtual void | relocate_to (void *storage)=0 |
Move this buffer enitity to a given location. More... | |
virtual std::size_t | size () const =0 |
Get the size of a writable piece of data. More... | |
A base class for writable items.
Having a condition to put heterogeneous writable-items sequence in vector and to transfer it from builders to connection context, internal writable-items are the pieces encapsulating various implementation that fit into a fixed memory space. That's makes it possible to fit any of them in a binary buffer that resides in writable_item_t. While different descendants might vary in size size of writable_item_t remains the same, so it can be used in a vector.
Definition at line 59 of file buffers.hpp.
|
default |
|
default |
|
default |
|
inlinevirtual |
Definition at line 68 of file buffers.hpp.
|
delete |
|
delete |
|
pure virtual |
Move this buffer enitity to a given location.
Implemented in restinio::impl::empty_buf_t, restinio::impl::const_buf_t, restinio::impl::datasizeable_buf_t< Datasizeable >, restinio::impl::shared_datasizeable_buf_t< Datasizeable >, and restinio::impl::sendfile_write_operation_t.
|
pure virtual |
Get the size of a writable piece of data.
Implemented in restinio::impl::empty_buf_t, restinio::impl::const_buf_t, restinio::impl::datasizeable_buf_t< Datasizeable >, restinio::impl::shared_datasizeable_buf_t< Datasizeable >, and restinio::impl::sendfile_write_operation_t.