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

#include "comms/options.h"

Detailed Description

template<typename TField>
struct comms::option::def::SequenceTrailingFieldSuffix< TField >

Option that forces collection fields to append provides suffix every time it is serialised.

It is a bit looser version than SequenceTerminationFieldSuffix. Encountering the expected termination value doesn't terminate the read operation on the sequence. The size of the sequence should be defined by other means. For example, zero termination string that occupies exactly 6 bytes when serialised (padded with zeroes at the end) will be defined like this:

using MyField =
MyFieldBase,
>
>;
Base class to all the field classes.
Definition Field.h:33
Field that represent integral value.
Definition IntValue.h:72
Field that represents a string.
Definition String.h:159
Option used to define exact number of elements in the collection field.
Definition options.h:579
Option that forces collection fields to append provides suffix every time it is serialised.
Definition options.h:531
Template Parameters
TFieldType of the field that represents suffix

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