emlabcpp
modern opinionated embedded C++ library
emlabcpp::protocol::sizeless_message< N > Class Template Reference

Sizeless message is class that behaves in a same way as normal message, however it is serialized differently. More...

#include <message.h>

+ Inheritance diagram for emlabcpp::protocol::sizeless_message< N >:
+ Collaboration diagram for emlabcpp::protocol::sizeless_message< N >:

Public Member Functions

template<std::size_t M>
 sizeless_message (message< M > const &other)
 
- Public Member Functions inherited from emlabcpp::protocol::message< N >
constexpr message ()=default
 
constexpr message (size_type const n) noexcept
 
constexpr message (view< const_iterator > const &v) noexcept
 
template<size_type M>
constexpr message (message< M > const &other) noexcept
 
template<size_type M>
constexpr message (std::array< value_type, M > const &inpt) noexcept
 
template<std::convertible_to< uint8_t >... Ts>
constexpr message (Ts... inpt)
 
template<size_type M>
constexpr messageoperator= (message< M > const &other) noexcept
 
constexpr const_pointer data () const noexcept
 
constexpr pointer data () noexcept
 
constexpr size_type size () const noexcept
 
constexpr value_type front () const noexcept
 
constexpr reference front () noexcept
 
constexpr value_type back () const noexcept
 
constexpr reference back () noexcept
 
constexpr const_iterator begin () const noexcept
 
constexpr iterator begin () noexcept
 
constexpr const_iterator end () const noexcept
 
constexpr iterator end () noexcept
 
value_type operator[] (size_type const i) const noexcept
 
reference operator[] (size_type const i) noexcept
 
void resize (size_type const n) noexcept
 

Additional Inherited Members

- Public Types inherited from emlabcpp::protocol::message< N >
using value_type = std::byte
 
using reference = std::byte &
 
using pointer = std::byte *
 
using const_pointer = std::byte const *
 
using iterator = std::byte *
 
using const_iterator = std::byte const *
 
using size_type = std::size_t
 
- Static Public Attributes inherited from emlabcpp::protocol::message< N >
static constexpr size_type capacity = N
 

Detailed Description

template<std::size_t N>
class emlabcpp::protocol::sizeless_message< N >

Sizeless message is class that behaves in a same way as normal message, however it is serialized differently.

Protocol message stores how many bytes it's made of before the data itself in the final message, sizless message does not and greedely tries to parse rest of the buffer during the parsing process.

Constructor & Destructor Documentation

◆ sizeless_message()

template<std::size_t N>
template<std::size_t M>
emlabcpp::protocol::sizeless_message< N >::sizeless_message ( message< M > const &  other)
inlineexplicit

References emlabcpp::N.


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