RTI Connext C# API Version 7.2.0
|
Provides temporary access to a collection of samples (data and info). More...
Inherits IEnumerable< LoanedSample< T > >, and IDisposable.
Public Member Functions | |
IEnumerator< LoanedSample< T > > | GetEnumerator () |
Provides access to the samples More... | |
void | Dispose () |
Returns the loaned samples back to the DataReader. More... | |
IEnumerable< T > | ValidData () |
Provides access only to the data samples with valid data, skipping samples such that SampleInfo.ValidData is false. More... | |
T | GetDataAt (int index) |
Equivalent to this[index].Data More... | |
Properties | |
int | Count [get] |
Returns the number of samples More... | |
LoanedSample< T > | this[uint index] [get] |
Provides indexed access to the samples More... | |
Provides temporary access to a collection of samples (data and info).
T | The topic-type of the DataReader<T> |
This collection needs to be explicitly disposed when it is no longer needed (typically with a using
statement). The underlying middleware resources it uses will not be released by the garbage collector.
After disposing the collection, its elements and all their references are no longer valid and cannot be accessed. To keep the data around, you can copy it.
|
inline |
Provides access to the samples
|
inline |
Returns the loaned samples back to the DataReader.
IEnumerable< T > Rti.Dds.Subscription.LoanedSamples< T >.ValidData | ( | ) |
Provides access only to the data samples with valid data, skipping samples such that SampleInfo.ValidData is false.
|
inline |
Equivalent to this[index].Data
|
get |
Returns the number of samples
|
get |
Provides indexed access to the samples