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

#include "comms/options.h"

Detailed Description

template<typename TField, comms::ErrorStatus TReadErrorStatus = comms::ErrorStatus::InvalidMsgData>
struct comms::option::def::SequenceSerLengthFieldPrefix< TField, TReadErrorStatus >

Option that modifies the default behaviour of collection fields to prepend the serialised data with number of bytes information.

Similar to SequenceSizeFieldPrefix, but instead of number of elements to follow, the prefix field contains number of bytes that will follow.

using MyField =
MyFieldBase,
std::tuple<
>
>,
>
>;
Base class to all the field classes.
Definition Field.h:33
Field that represents a sequential collection of fields.
Definition ArrayList.h:192
Bundles multiple fields into a single field.
Definition Bundle.h:61
Field that represent integral value.
Definition IntValue.h:72
Field that represents a string.
Definition String.h:159
Option that modifies the default behaviour of collection fields to prepend the serialised data with n...
Definition options.h:465
Template Parameters
TFieldType of the field that represents serialisation length
TReadErrorStatusError status to return in case read operation fails when should not

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