|
Fray Engine
|
A parsed incoming message. The payload is a view into the frame, which this keeps alive via shared ownership. More...
#include <message.hpp>
Public Member Functions | |
| const F_uchar * | payload () const |
| Pointer to the first payload byte inside frame (valid only while frame is held; frame must be non-null). | |
| size_t | payloadSize () const |
| Payload length in bytes (prefix.length minus headerLength). | |
Public Attributes | |
| Prefix | prefix |
| Header | header |
| std::shared_ptr< const std::vector< F_uchar > > | frame |
A parsed incoming message. The payload is a view into the frame, which this keeps alive via shared ownership.
Definition at line 168 of file message.hpp.
|
inline |
Pointer to the first payload byte inside frame (valid only while frame is held; frame must be non-null).
Definition at line 178 of file message.hpp.
|
inline |
Payload length in bytes (prefix.length minus headerLength).
Definition at line 180 of file message.hpp.
| std::shared_ptr<const std::vector<F_uchar> > fray::message::InData::frame |
The complete raw frame (prefix + header + payload), shared and immutable.
Definition at line 175 of file message.hpp.
| Header fray::message::InData::header |
Decoded protobuf header (sender, ids, payload type, and so on).
Definition at line 173 of file message.hpp.
| Prefix fray::message::InData::prefix |
Decoded routing prefix.
Definition at line 171 of file message.hpp.