COMMS
Template library intended to help with implementation of communication protocols.
|
#include "comms/options.h"
Option that modifies the default behaviour of collection fields to prepend the serialised data with number of elements information.
Quite often when collection of fields is serialised it must be prepended with one or more bytes indicating number of elements that will follow. Applicable to fields that represent collection of raw data or other fields, such as comms::field::ArrayList or comms::field::String.
For example sequence of raw bytes must be prefixed with 2 bytes stating the size of the sequence:
TField | Type of the field that represents size |