RTI Connext Modern C++ API  Version 5.3.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
rti::core::xtypes::DynamicDataTypeSerializationProperty Class Reference

<<extension>> <<value-type>> Configures aspects of the memory management in the serialization of dds::core::xtypes::DynamicData samples. More...

#include <rti/core/xtypes/DynamicDataProperty.hpp>

Public Member Functions

 DynamicDataTypeSerializationProperty ()
 Default configuration.
 
 DynamicDataTypeSerializationProperty (int32_t the_max_size_serialized, int32_t the_min_size_serialized, bool the_trim_to_size, bool the_enable_fast_deserialization)
 Specifies all the serialization parameters.
 
uint32_t max_size_serialized () const
 Getter (see setter with the same name)
 
DynamicDataTypeSerializationPropertymax_size_serialized (uint32_t value)
 The maximum number of bytes that objects of a given type could consume when serialized on the network.
 
uint32_t min_size_serialized () const
 Getter (see setter with the same name)
 
DynamicDataTypeSerializationPropertymin_size_serialized (uint32_t value)
 The minimum number of bytes that objects of a given type could consume when serialized on the network.
 
bool trim_to_size () const
 Getter (see setter with the same name)
 
DynamicDataTypeSerializationPropertytrim_to_size (bool value)
 Controls the growth of the serialization buffer in a DynamicData object.
 
bool enable_fast_deserialization () const
 Getter (see setter with the same name)
 

Static Public Attributes

static const
DynamicDataTypeSerializationProperty 
DEFAULT
 Default configuration.
 

Detailed Description

Constructor & Destructor Documentation

rti::core::xtypes::DynamicDataTypeSerializationProperty::DynamicDataTypeSerializationProperty ( )
inline

Default configuration.

rti::core::xtypes::DynamicDataTypeSerializationProperty::DynamicDataTypeSerializationProperty ( int32_t  the_max_size_serialized,
int32_t  the_min_size_serialized,
bool  the_trim_to_size,
bool  the_enable_fast_deserialization 
)
inline

Specifies all the serialization parameters.

Member Function Documentation

uint32_t rti::core::xtypes::DynamicDataTypeSerializationProperty::max_size_serialized ( ) const
inline

Getter (see setter with the same name)

DynamicDataTypeSerializationProperty& rti::core::xtypes::DynamicDataTypeSerializationProperty::max_size_serialized ( uint32_t  value)
inline

The maximum number of bytes that objects of a given type could consume when serialized on the network.

This value is used to set the sizes of certain internal middleware buffers.

The effective value of the maximum serialized size will be the value of this field or the size automatically inferred from the type's TypeCode, whichever is smaller.

uint32_t rti::core::xtypes::DynamicDataTypeSerializationProperty::min_size_serialized ( ) const
inline

Getter (see setter with the same name)

DynamicDataTypeSerializationProperty& rti::core::xtypes::DynamicDataTypeSerializationProperty::min_size_serialized ( uint32_t  value)
inline

The minimum number of bytes that objects of a given type could consume when serialized on the network.

This value is used to set the sizes of certain internal middleware buffers.

Default: 0xFFFFFFFF, a sentinel that indicates that this value must be equal to the value specified in max_size_serialized.

bool rti::core::xtypes::DynamicDataTypeSerializationProperty::trim_to_size ( ) const
inline

Getter (see setter with the same name)

DynamicDataTypeSerializationProperty& rti::core::xtypes::DynamicDataTypeSerializationProperty::trim_to_size ( bool  value)
inline

Controls the growth of the serialization buffer in a DynamicData object.

If set to 0 (default): The buffer will not be reallocated unless the serialized size of the incoming sample is greater than the current buffer size.

If set to 1: The buffer of a DynamicData object obtained from the sample pool will be reallocated to just fit the size of the serialized data of the incoming sample. The new size cannot be smaller than min_size_serialized.

bool rti::core::xtypes::DynamicDataTypeSerializationProperty::enable_fast_deserialization ( ) const
inline

Getter (see setter with the same name)

Member Data Documentation

const DynamicDataTypeSerializationProperty rti::core::xtypes::DynamicDataTypeSerializationProperty::DEFAULT
static

Default configuration.


RTI Connext Modern C++ API Version 5.3.0 Copyright © Sun Jun 25 2017 Real-Time Innovations, Inc