3.2.8 Type Codes for Built-in Types

The type codes associated with the built-in types are generated from the following IDL type definitions:

module DDS {
	/* String */
	struct String {
		string<max_size> value;
	};
	/* KeyedString */
	struct KeyedString {
		@key string<max_size> key;
		string<max_size> value;
	};
	/* Octets */
	struct Octets {
		sequence<octet, max_size> value;
	};
	/* KeyedOctets */
	struct KeyedOctets {
		@key string<max_size> key;
		sequence<octet, max_size> value;
	};
};

The maximum size (max_size) of the strings and sequences that will be included in the type code definitions can be configured on a per-DomainParticipant-basis by using the properties in Table 3.2 Properties for Allocating Size of Built-in Types, per DomainParticipant.

Table 3.2 Properties for Allocating Size of Built-in Types, per DomainParticipant

Built-in Type

Property

Description

String

dds.builtin_type.string.max_size

Maximum size of the strings published by the DataWriters and received by the DataReaders belonging to a DomainParticipant (includes the NULL-terminated character).

Default: 1024

KeyedString

dds.builtin_type.keyed_string.
max_key_size

Maximum size of the keys used by the DataWriters and DataReaders belonging to a DomainParticipant (includes the NULL-terminated character).

Default: 1024

dds.builtin_type.keyed_string.
max_size

Maximum size of the strings published by the DataWriters and received by the DataReaders belonging to a DomainParticipant using the built-in type (includes the NULL-terminated character).

Default: 1024

Octets

dds.builtin_type.octets.max_size

Maximum size of the octet sequences published by the DataWriters and DataReaders belonging to a DomainParticipant.

Default: 2048

Keyed-Octets

dds.builtin_type.keyed_octets.
max_key_size

Maximum size of the key published by the DataWriter and received by the DataReaders belonging to the DomainParticipant (includes the NULL-terminated character).

Default:1024.

dds.builtin_type.keyed_octets.
max_size

Maximum size of the octet sequences published by the DataWriters and DataReaders belonging to a DomainParticipant.

Default: 2048

© 2020 RTI