COMMS
Template library intended to help with implementation of communication protocols.
|
#include "comms/options.h"
Option to enable external forcing of the collection's elements count.
Sometimes the size information is detached from the data sequence itself, i.e. there may be one or more independent fields between the size field and the first byte of the collection. In such case it becomes impossible to use SequenceSizeFieldPrefix option. Instead, the size information must be provided by external calls. Usage of this option enables forceReadElemCount() and clearReadElemCount() functions in the collection fields, such as comms::field::ArrayList or comms::field::String which can be used to specify the size information after it was read independently.