Skip to main content

Module types

Module types 

Source
Expand description

IDL-PSM data type mapping per DDS-XML 1.0 §7.2.

Element value parsers for boolean, hex/decimal long, Duration_t, and the symbol constants LENGTH_UNLIMITED, DURATION_INFINITE_SEC and DURATION_INFINITE_NSEC from §7.2.2.

All helpers are pure string -> typed-value conversions without allocation, where possible.

Structs§

Duration
Duration_t per DDS 1.4 §2.2.1.2 + DDS-XML 1.0 §7.2.6.

Constants§

DURATION_INFINITE_NSEC
Spec §7.2.2: DURATION_INFINITE_NSEC = 0x7FFFFFFF.
DURATION_INFINITE_SEC
Spec §7.2.2: DURATION_INFINITE_SEC = 0x7FFFFFFF (max signed long).
DURATION_ZERO_NSEC
Spec §7.2.2: DURATION_ZERO_NSEC = 0.
DURATION_ZERO_SEC
Spec §7.2.2: DURATION_ZERO_SEC = 0.
LENGTH_UNLIMITED
Spec §7.2.2: LENGTH_UNLIMITED as a signed long, value -1.
MAX_STRING_BYTES
String-DoS-Cap: 64 KiB.
TIME_INVALID_NSEC
Spec §7.2.2.7: TIME_INVALID_NSEC = 0xFFFFFFFF.
TIME_INVALID_SEC
Spec §7.2.2.6: TIME_INVALID_SEC = -1.

Functions§

parse_bool
Boolean parser per Spec §7.1.4 Tab.7.1.
parse_duration_nsec
Nanoseconds value for Duration_t.nanosec per Spec §7.2.2 + the nonNegativeInteger_Duration_NSEC pattern.
parse_duration_sec
Seconds value for Duration_t.sec per Spec §7.2.2 + the nonNegativeInteger_Duration_SEC pattern.
parse_enum
Enum whitelist check per Spec §7.1.4 Tab.7.1 (enum values are string literals from DCPS-IDL, not numeric).
parse_long
Long parser (signed 32-bit) per Spec §7.1.4 Tab.7.1.
parse_octet_sequence
Octet sequence parser per Spec §7.2.4.2 (comma-separated decimal/hex). Each element is an octet (u8).
parse_positive_long_unlimited
positiveInteger_UNLIMITED parser per Spec §7.2.2.9.
parse_string
String parser with a DoS cap per the ZeroDDS security posture.
parse_ulong
Unsigned long parser (32-bit) per Spec §7.1.4 Tab.7.1.