emlabcpp
modern opinionated embedded C++ library
message.h File Reference
#include "../concepts.h"
#include "../view.h"
+ Include dependency graph for message.h:

Go to the source code of this file.

Classes

class  emlabcpp::protocol::message< N >
 Protocol library has custom type that represents message, however this is just simple overaly over std::array that remembers how many bytes are used. More...
 
class  emlabcpp::protocol::sizeless_message< N >
 Sizeless message is class that behaves in a same way as normal message, however it is serialized differently. More...
 

Namespaces

 emlabcpp
 MIT License.
 
 emlabcpp::protocol
 MIT License.
 
 emlabcpp::protocol::detail
 

Functions

template<std::convertible_to< uint8_t >... Ts>
 emlabcpp::protocol::message (Ts... inpt) -> message< sizeof...(Ts) >
 
template<std::convertible_to< uint8_t >... Ts>
 emlabcpp::protocol::sizeless_message (Ts... inpt) -> sizeless_message< sizeof...(Ts) >
 
template<std::size_t N>
constexpr bool emlabcpp::protocol::detail::message_derived_test (message< N > const &)
 

Variables

template<typename T >
concept emlabcpp::protocol::message_derived = requires( T val ) { detail::message_derived_test( val ); }
 concept matches any type that is message or derives from it. More...