RTI Connext C# API
7.0.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 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 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