COMMS
Template library intended to help with implementation of communication protocols.
|
#include "comms/options.h"
Use "view" on original raw data instead of copying it.
Can be used with comms::field::String and raw data comms::field::ArrayList.
For comms::field::String it will force usage of std::string_view (if available) as inner storage type (instead of std::string). In case std::string_view is unavalable (C++17 support is disabled or standard library of insufficient version) comms::util::StringView will be used instead.
For raw data comms::field::ArrayList it will force usage of std::span<std::uint8_t>(if available) as inner storage type (instead of std::vector<std::uint8_t>). In case std::span is unavalable (C++20 support is disabled or standard library of insufficient version) comms::util::ArrayView will be used instead.