IDL 4.2 · §7.4.13.4.7

Bitmask

A bitmask is a set of named bit flags backed by an unsigned integer, with optional @position for explicit bit indices. Values combine with bitwise OR.

Example

@bit_bound(8)
bitmask Permissions {
  READ,
  WRITE,
  @position(4) EXECUTE,
};

ZeroDDS support

OMG IDL 4.2 section§7.4.13.4.7
Implementationidl-rust/src
Testsbitfield_validation.rs
Status✓ RC3 — parsed, validated and code-generated across all target languages.

See also: IDL construct coverage · idl-4.2 audit · OMG IDL 4.2 spec