COMMS
Template library intended to help with implementation of communication protocols.
|
#include "comms/options.h"
Option used to specify that field may have variable serialisation length.
Applicable only to numeric fields, such as comms::field::IntValue or comms::field::EnumValue. Use this option to specify that serialised value has Base-128 encoding, i.e. the most significant bit in the byte indicates whether the encoding of the value is complete or the next byte in sequence still encodes the current integer value. For example field which value can be serialised using between 1 and 4 bytes can be defined as:
TMin | Minimal length the field may consume. |
TMax | Maximal length the field may consume. |