libe3 0.2.5
C++ library for E3AP RAN vendor integration
Loading...
Searching...
No Matches
libe3::EncodedMessage Struct Reference

Encoded message wrapper. More...

#include <types.hpp>

Public Member Functions

 EncodedMessage ()=default
 EncodedMessage (std::vector< uint8_t > buf, EncodingFormat fmt)
size_t size () const noexcept
bool empty () const noexcept
const uint8_t * data () const noexcept
uint8_t * data () noexcept

Public Attributes

std::vector< uint8_t > buffer
 Encoded data buffer.
EncodingFormat format
 Format used for encoding.

Detailed Description

Encoded message wrapper.

Unified wrapper for encoded data regardless of format used.

Definition at line 175 of file types.hpp.

Constructor & Destructor Documentation

◆ EncodedMessage() [1/2]

libe3::EncodedMessage::EncodedMessage ( )
default

◆ EncodedMessage() [2/2]

libe3::EncodedMessage::EncodedMessage ( std::vector< uint8_t > buf,
EncodingFormat fmt )
inline

Definition at line 180 of file types.hpp.

Member Function Documentation

◆ data() [1/2]

const uint8_t * libe3::EncodedMessage::data ( ) const
inlinenoexcept

Definition at line 185 of file types.hpp.

◆ data() [2/2]

uint8_t * libe3::EncodedMessage::data ( )
inlinenoexcept

Definition at line 186 of file types.hpp.

◆ empty()

bool libe3::EncodedMessage::empty ( ) const
inlinenoexcept

Definition at line 184 of file types.hpp.

◆ size()

size_t libe3::EncodedMessage::size ( ) const
inlinenoexcept

Definition at line 183 of file types.hpp.

Member Data Documentation

◆ buffer

std::vector<uint8_t> libe3::EncodedMessage::buffer

Encoded data buffer.

Definition at line 176 of file types.hpp.

◆ format

EncodingFormat libe3::EncodedMessage::format

Format used for encoding.

Definition at line 177 of file types.hpp.


The documentation for this struct was generated from the following file:
  • /home/runner/work/libe3/libe3/include/libe3/types.hpp