emlabcpp
modern opinionated embedded C++ library
|
#include "../experimental/bounded_view.h"
#include "../range.h"
#include "./base.h"
#include <bit>
#include <span>
Go to the source code of this file.
Classes | |
struct | emlabcpp::protocol::serializer< T, Endianess > |
struct | emlabcpp::protocol::serializer< float, Endianess > |
struct | emlabcpp::protocol::serializer< bool, Endianess > |
Namespaces | |
emlabcpp | |
MIT License. | |
emlabcpp::protocol | |
MIT License. | |
Typedefs | |
using | emlabcpp::protocol::userializer = serializer< utype, Endianess > |
using | emlabcpp::protocol::size_type = bounded< std::size_t, max_size, max_size > |
Functions | |
template<base_type T, std::endian Endianess> | |
emlabcpp::protocol::requires (std::is_enum_v< T >) struct serializer< T | |
static constexpr void | emlabcpp::protocol::serialize_at (std::span< std::byte, max_size > buffer, T item) |
static constexpr T | emlabcpp::protocol::deserialize (std::span< std::byte const, max_size > const &buffer) |
Variables | |
emlabcpp::protocol::Endianess | |
static constexpr std::size_t | emlabcpp::protocol::max_size = userializer::max_size |