void assertNotCommitted() const
Definition: AppendContext.cpp:68
void commit(size_t size)
Commits the write to the underlying buffer.
Definition: AppendContext.cpp:59
#define CATAPULT_THROW_RUNTIME_ERROR_2(MESSAGE, PARAM1, PARAM2)
Macro used to throw a catapult runtime error with two parameters.
Definition: exceptions.h:175
size_t m_appendSize
Definition: AppendContext.h:51
boost::asio::mutable_buffers_1 buffer()
An asio buffer that can be written to in place.
Definition: AppendContext.cpp:54
~AppendContext()
Destructor.
Definition: AppendContext.cpp:49
ByteBuffer & m_data
Definition: AppendContext.h:50
AppendContext(ByteBuffer &data, size_t size)
Creates an append context for appending size data to data.
Definition: AppendContext.cpp:26
bool m_isCommitted
Definition: AppendContext.h:53
Definition: AppendContext.h:28
size_t m_originalSize
Definition: AppendContext.h:52