Fray Engine
Loading...
Searching...
No Matches
fray::message::InData Struct Reference

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

Detailed Description

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.

Member Function Documentation

◆ payload()

const F_uchar * fray::message::InData::payload ( ) const
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.

◆ payloadSize()

size_t fray::message::InData::payloadSize ( ) const
inline

Payload length in bytes (prefix.length minus headerLength).

Definition at line 180 of file message.hpp.

Member Data Documentation

◆ frame

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

Header fray::message::InData::header

Decoded protobuf header (sender, ids, payload type, and so on).

Definition at line 173 of file message.hpp.

◆ prefix

Prefix fray::message::InData::prefix

Decoded routing prefix.

Definition at line 171 of file message.hpp.


The documentation for this struct was generated from the following file: