COMMS
Template library intended to help with implementation of communication protocols.
Loading...
Searching...
No Matches
comms::option::def::SequenceLengthForcingEnabled Struct Reference

#include "comms/options.h"

Detailed Description

Option to enable external forcing of the collection's serialisation length duting "read" operation.

Sometimes the length information is detached from the data sequence itself, i.e. there may be one or more independent fields between the length field and the first byte of the collection. In such case it becomes impossible to use SequenceSerLengthFieldPrefix option. Instead, the length information must be provided by external calls. Usage of this option enables forceReadLength() and clearReadLengthForcing() 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.


The documentation for this struct was generated from the following file: