Encoded message wrapper.
More...
#include <types.hpp>
Encoded message wrapper.
Unified wrapper for encoded data regardless of format used.
Definition at line 219 of file types.hpp.
◆ EncodedMessage() [1/2]
| libe3::EncodedMessage::EncodedMessage |
( |
| ) |
|
|
default |
Empty message with no format set.
◆ EncodedMessage() [2/2]
| libe3::EncodedMessage::EncodedMessage |
( |
std::vector< uint8_t > | buf, |
|
|
EncodingFormat | fmt ) |
|
inline |
Wrap an already encoded buffer.
- Parameters
-
| buf | Encoded bytes, moved in |
| fmt | Format the bytes are in |
Definition at line 228 of file types.hpp.
◆ data() [1/2]
| const uint8_t * libe3::EncodedMessage::data |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- Read-only pointer to the first encoded byte
Definition at line 236 of file types.hpp.
◆ data() [2/2]
| uint8_t * libe3::EncodedMessage::data |
( |
| ) |
|
|
inlinenoexcept |
- Returns
- Pointer to the first encoded byte
Definition at line 238 of file types.hpp.
◆ empty()
| bool libe3::EncodedMessage::empty |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- True when there are no encoded bytes
Definition at line 234 of file types.hpp.
◆ size()
| size_t libe3::EncodedMessage::size |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- Number of encoded bytes
Definition at line 232 of file types.hpp.
◆ buffer
| std::vector<uint8_t> libe3::EncodedMessage::buffer |
Encoded data buffer.
Definition at line 220 of file types.hpp.
◆ format
Format used for encoding.
Definition at line 221 of file types.hpp.
The documentation for this struct was generated from the following file: