COMMS
Template library intended to help with implementation of communication protocols.
|
#include "comms/options.h"
Option used to specify number of bytes that is used for field serialisation.
Applicable only to numeric fields, such as comms::field::IntValue or comms::field::EnumValue.
For example, protocol specifies that some field is serialised using only 3 bytes. There is no basic integral type that takes 3 bytes of space exactly. The closest alternative is std::int32_t or std::uint32_t. Such field may be defined as:
TLen | Length of the serialised value. |
TSignExtend | Perform sign extension, relevant only to signed types. |