RTI Connext C# API Version 7.2.0
Rti.Dds.Core.Policy.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]

Rti.Dds.Core.Policy.TopicData.TopicData ( IEnumerable< byte >  value)
inline

Creates a TopicData object with a list of settings

◆ TopicData() [2/2]

Rti.Dds.Core.Policy.TopicData.TopicData ( ImmutableList< byte >  value)

Creates a TopicData object with a list of settings

Member Function Documentation

◆ With()

TopicData Rti.Dds.Core.Policy.TopicData.With ( Action< ImmutableList< byte >.Builder >  build)
inline

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

◆ GetHashCode()

override int Rti.Dds.Core.Policy.TopicData.GetHashCode ( )

Gets the hash code

◆ Equals() [1/2]

override bool Rti.Dds.Core.Policy.TopicData.Equals ( object  other)

Compares for equality

◆ Equals() [2/2]

bool Rti.Dds.Core.Policy.TopicData.Equals ( TopicData  other)
inline

Compares for equality

Property Documentation

◆ Value

ImmutableList<byte> Rti.Dds.Core.Policy.TopicData.Value
get

An opaque sequence of bytes.

The full documentation is available in the C API: DDS_TopicDataQosPolicy_value

◆ Default

TopicData Rti.Dds.Core.Policy.TopicData.Default
staticget

Singleton containing the default value of a TopicData