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_tper 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_UNLIMITEDas 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.nanosecper Spec §7.2.2 + thenonNegativeInteger_Duration_NSECpattern. - parse_
duration_ sec - Seconds value for
Duration_t.secper Spec §7.2.2 + thenonNegativeInteger_Duration_SECpattern. - 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_UNLIMITEDparser 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.