RTI Connext C# API  6.1.2
TopicData Class Reference

Attaches a buffer of opaque data that is distributed by means of the built-in topics. More...

Inherits IEquatable< TopicData >.

Public Member Functions

 TopicData (IEnumerable< byte > value)
 Creates a TopicData object with a list of settings More...
 
 TopicData (ImmutableList< byte > value)
 Creates a TopicData object with a list of settings More...
 
TopicData With (Action< ImmutableList< byte >.Builder > build)
 Creates a new TopicData with a set of changes specified in an Action More...
 
override int GetHashCode ()
 Gets the hash code More...
 
override bool Equals (object other)
 Compares for equality More...
 
bool Equals (TopicData other)
 Compares for equality More...
 

Properties

ImmutableList< byte > Value [get]
 An opaque sequence of bytes. More...
 
static TopicData Default [get]
 Singleton containing the default value of a TopicData More...
 

Detailed Description

Attaches a buffer of opaque data that is distributed by means of the built-in topics.

The full documentation is available in the C API: DDS_TopicDataQosPolicy

Constructor & Destructor Documentation

◆ TopicData() [1/2]

TopicData ( IEnumerable< byte >  value)

Creates a TopicData object with a list of settings

◆ TopicData() [2/2]

TopicData ( ImmutableList< byte >  value)

Creates a TopicData object with a list of settings

Member Function Documentation

◆ Equals() [1/2]

override bool Equals ( object  other)

Compares for equality

◆ Equals() [2/2]

bool Equals ( TopicData  other)

Compares for equality

◆ GetHashCode()

override int GetHashCode ( )

Gets the hash code

◆ With()

TopicData With ( Action< ImmutableList< byte >.Builder >  build)

Creates a new TopicData with a set of changes specified in an Action

Parameters
buildAn Action (typically a lambda function) that receives a modifiable list with the current values of this object's Value.
Returns
A new TopicData with the changes applied by the Action

Property Documentation

◆ Default

TopicData Default
staticget

Singleton containing the default value of a TopicData

◆ Value

ImmutableList<byte> Value
get

An opaque sequence of bytes.

The full documentation is available in the C API: DDS_TopicDataQosPolicy::value