RTI Connext C# API Version 7.3.0
|
Contains the data and the information associated with a sample, which are only valid until their LoanedSamples<T> container is Disposed More...
Public Member Functions | |
void | Deconstruct (out T data, out SampleInfo info) |
Allows deconstructing a LoanedSample into a tuple with the data and the info. More... | |
override string | ToString () |
Returns Data.ToString() when Info.ValidData is true; otherwise it returns a readable summary of the Info . More... | |
Properties | |
T | Data [get] |
Gets the data More... | |
SampleInfo | Info [get] |
Gets the information about this sample More... | |
Contains the data and the information associated with a sample, which are only valid until their LoanedSamples<T> container is Disposed
Any reference contained within a LoanedSample
is only valid until the corresponding LoanedSamples<T> has been Disposed. Attempting to access any data within the sample after that is undefined behavior.
T | The topic type of the data |
void Rti.Dds.Subscription.LoanedSample< T >.Deconstruct | ( | out T | data, |
out SampleInfo | info | ||
) |
Allows deconstructing a LoanedSample into a tuple with the data and the info.
data | Output parameter assigned this.Data |
info | Output parameter assigned this.Info |
For example:
override string Rti.Dds.Subscription.LoanedSample< T >.ToString | ( | ) |
Returns Data.ToString()
when Info.ValidData
is true; otherwise it returns a readable summary of the Info
.
|
get |
Gets the data
|
get |
Gets the information about this sample