Table of Contents

Method GetTimestampedPayloadInt32

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

GetTimestampedPayloadInt32()

Returns the message payload as a single 32-bit signed integer and gets the message timestamp.

public Timestamped<int> GetTimestampedPayloadInt32()

Returns

Timestamped<int>

A timestamped int representing the message payload.

Exceptions

InvalidOperationException

The message does not have a timestamped payload.

GetTimestampedPayloadInt32(int)

Returns the element at the specified index of the 32-bit signed integer array payload and gets the message timestamp.

public Timestamped<int> GetTimestampedPayloadInt32(int index)

Parameters

index int

The zero-based index of the array element to get.

Returns

Timestamped<int>

A timestamped int representing the element at the specified index of the array payload.

Exceptions

InvalidOperationException

The message does not have a timestamped payload.