COMMS
Template library intended to help with implementation of communication protocols.
Loading...
Searching...
No Matches
comms::option::app::FixedSizeStorage< TSize > Struct Template Reference

#include "comms/options.h"

Detailed Description

template<std::size_t TSize>
struct comms::option::app::FixedSizeStorage< TSize >

Option that forces usage of embedded uninitialised data area instead of dynamic memory allocation.

Applicable to fields that represent collection of raw data or other fields, such as comms::field::ArrayList or comms::field::String. By default, these fields will use std::vector or std::string for their internal data storage. If this option is used, it will force such fields to use comms::util::StaticVector or comms::util::StaticString with the capacity provided by this option.

Template Parameters
TSizeSize of the storage area in number of elements, for strings it does NOT include the '\0' terminating character.

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