Wire Sysio Wire Sysion 1.0.0
|
abstraction for a message buffer that spans a chain of physical buffers More...
#include <message_buffer.hpp>
Public Types | |
typedef std::pair< uint32_t, uint32_t > | index_t |
Public Member Functions | |
message_buffer () | |
~message_buffer () | |
index_t | read_index () const |
index_t | write_index () const |
char * | read_ptr () |
char * | write_ptr () |
void | add_buffer_to_chain () |
void | add_space (uint32_t bytes) |
void | reset () |
uint32_t | bytes_to_read () const |
uint32_t | bytes_to_read_from_index (const index_t &ind) const |
uint32_t | bytes_to_write () const |
uint32_t | total_bytes () const |
void | advance_read_ptr (uint32_t bytes) |
void | advance_write_ptr (uint32_t bytes) |
std::vector< boost::asio::mutable_buffer > | get_buffer_sequence_for_boost_async_read () |
bool | read (void *s, uint32_t size) |
bool | peek (void *s, uint32_t size, index_t &index) const |
mb_datastream< buffer_len > | create_datastream () |
mb_peek_datastream< buffer_len > | create_peek_datastream () |
Static Public Member Functions | |
static void | advance_index (index_t &index, uint32_t bytes) |
This message buffer abstraction will allocate individual character arrays of size buffer_len from a boost::singleton_pool. It supports creation of a vector of boost::mutable_buffer for use with async_read() and async_read_some(). It also supports use with the fc unpack() functionality via a datastream helper class.
Definition at line 25 of file message_buffer.hpp.
std::pair<uint32_t, uint32_t> fc::message_buffer< buffer_len >::index_t |
Definition at line 32 of file message_buffer.hpp.
|
inline |
Definition at line 34 of file message_buffer.hpp.
|
inline |
Definition at line 36 of file message_buffer.hpp.
|
inline |
Definition at line 75 of file message_buffer.hpp.
|
inline |
Definition at line 85 of file message_buffer.hpp.
|
inlinestatic |
Definition at line 249 of file message_buffer.hpp.
|
inline |
Definition at line 159 of file message_buffer.hpp.
|
inline |
Definition at line 178 of file message_buffer.hpp.
|
inline |
Definition at line 122 of file message_buffer.hpp.
|
inline |
Definition at line 130 of file message_buffer.hpp.
|
inline |
Definition at line 140 of file message_buffer.hpp.
|
inline |
Definition at line 313 of file message_buffer.hpp.
|
inline |
Definition at line 348 of file message_buffer.hpp.
|
inline |
Definition at line 192 of file message_buffer.hpp.
|
inline |
Definition at line 228 of file message_buffer.hpp.
|
inline |
Definition at line 207 of file message_buffer.hpp.
|
inline |
Definition at line 47 of file message_buffer.hpp.
|
inline |
Definition at line 59 of file message_buffer.hpp.
|
inline |
Definition at line 97 of file message_buffer.hpp.
|
inline |
Definition at line 147 of file message_buffer.hpp.
|
inline |
Definition at line 53 of file message_buffer.hpp.
|
inline |
Definition at line 67 of file message_buffer.hpp.