|
CatapultServer
v0.5.0.1 (Elephant)
|
Public Member Functions | |
| AppendContext (ByteBuffer &data, size_t size) | |
| Creates an append context for appending size data to data. More... | |
| AppendContext (AppendContext &&rhs) | |
| Move constructor. More... | |
| ~AppendContext () | |
| Destructor. More... | |
| boost::asio::mutable_buffers_1 | buffer () |
| An asio buffer that can be written to in place. More... | |
| void | commit (size_t size) |
| Commits the write to the underlying buffer. More... | |
Private Member Functions | |
| void | assertNotCommitted () const |
Private Attributes | |
| ByteBuffer & | m_data |
| size_t | m_appendSize |
| size_t | m_originalSize |
| bool | m_isCommitted |
Context for enabling in-place data writes into a buffer. If commit is not called, the write is abandoned.
| catapult::ionet::AppendContext::AppendContext | ( | ByteBuffer & | data, |
| size_t | size | ||
| ) |
Creates an append context for appending size data to data.
| catapult::ionet::AppendContext::AppendContext | ( | AppendContext && | rhs | ) |
Move constructor.
| catapult::ionet::AppendContext::~AppendContext | ( | ) |
Destructor.
|
private |

| boost::asio::mutable_buffers_1 catapult::ionet::AppendContext::buffer | ( | ) |
An asio buffer that can be written to in place.

| void catapult::ionet::AppendContext::commit | ( | size_t | size | ) |
Commits the write to the underlying buffer.

|
private |
|
private |
|
private |
|
private |