Method GetTimestampedPayloadInt16
GetTimestampedPayloadInt16()
Returns the message payload as a single 16-bit signed integer and gets the message timestamp.
public Timestamped<short> GetTimestampedPayloadInt16()
Returns
- Timestamped<short>
A timestamped short representing the message payload.
Exceptions
- InvalidOperationException
The message does not have a timestamped payload.
GetTimestampedPayloadInt16(int)
Returns the element at the specified index of the 16-bit signed integer array payload and gets the message timestamp.
public Timestamped<short> GetTimestampedPayloadInt16(int index)
Parameters
index
intThe zero-based index of the array element to get.
Returns
- Timestamped<short>
A timestamped short representing the element at the specified index of the array payload.
Exceptions
- InvalidOperationException
The message does not have a timestamped payload.