Method FromPayload
FromPayload(int, MessageType, PayloadType, params byte[])
Returns a HarpMessage with the specified address, message type, and payload.
public static HarpMessage FromPayload(int address, MessageType messageType, PayloadType payloadType, params byte[] payload)
Parameters
addressintThe address of the register to which the Harp message refers to.
messageTypeMessageTypeThe type of the Harp message.
payloadTypePayloadTypeThe type of data available in the message payload.
payloadbyte[]The raw binary representation of the payload data.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type and payload.
FromPayload(int, int, MessageType, PayloadType, params byte[])
Returns a HarpMessage with the specified address, message type, port, and payload.
public static HarpMessage FromPayload(int address, int port, MessageType messageType, PayloadType payloadType, params byte[] payload)
Parameters
addressintThe address of the register to which the Harp message refers to.
portintThe origin or destination of the Harp message, for routing purposes.
messageTypeMessageTypeThe type of the Harp message.
payloadTypePayloadTypeThe type of data available in the message payload.
payloadbyte[]The raw binary representation of the payload data.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, port, and payload.
FromPayload(int, MessageType, PayloadType, ArraySegment<byte>)
Returns a HarpMessage with the specified address, message type, and payload data stored in the specified array segment.
public static HarpMessage FromPayload(int address, MessageType messageType, PayloadType payloadType, ArraySegment<byte> payload)
Parameters
addressintThe address of the register to which the Harp message refers to.
messageTypeMessageTypeThe type of the Harp message.
payloadTypePayloadTypeThe type of data available in the message payload.
payloadArraySegment<byte>An array segment containing the raw binary representation of the payload data.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, and payload.
FromPayload(int, int, MessageType, PayloadType, ArraySegment<byte>)
Returns a HarpMessage with the specified address, message type, port, and payload data stored in the specified array segment.
public static HarpMessage FromPayload(int address, int port, MessageType messageType, PayloadType payloadType, ArraySegment<byte> payload)
Parameters
addressintThe address of the register to which the Harp message refers to.
portintThe origin or destination of the Harp message, for routing purposes.
messageTypeMessageTypeThe type of the Harp message.
payloadTypePayloadTypeThe type of data available in the message payload.
payloadArraySegment<byte>An array segment containing the raw binary representation of the payload data.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, port, and payload.
FromPayload(int, double, MessageType, PayloadType, params byte[])
Returns a HarpMessage with the specified address, message type, timestamp, and payload.
public static HarpMessage FromPayload(int address, double timestamp, MessageType messageType, PayloadType payloadType, params byte[] payload)
Parameters
addressintThe address of the register to which the Harp message refers to.
timestampdoubleThe timestamp of the message payload, in seconds.
messageTypeMessageTypeThe type of the Harp message.
payloadTypePayloadTypeThe type of data available in the message payload.
payloadbyte[]The raw binary representation of the payload data.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, timestamp, and payload.
FromPayload(int, int, double, MessageType, PayloadType, params byte[])
Returns a HarpMessage with the specified address, message type, port, timestamp, and payload.
public static HarpMessage FromPayload(int address, int port, double timestamp, MessageType messageType, PayloadType payloadType, params byte[] payload)
Parameters
addressintThe address of the register to which the Harp message refers to.
portintThe origin or destination of the Harp message, for routing purposes.
timestampdoubleThe timestamp of the message payload, in seconds.
messageTypeMessageTypeThe type of the Harp message.
payloadTypePayloadTypeThe type of data available in the message payload.
payloadbyte[]The raw binary representation of the payload data.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, port, timestamp, and payload.
FromPayload(int, double, MessageType, PayloadType, ArraySegment<byte>)
Returns a HarpMessage with the specified address, message type, timestamp, and payload data stored in the specified array segment.
public static HarpMessage FromPayload(int address, double timestamp, MessageType messageType, PayloadType payloadType, ArraySegment<byte> payload)
Parameters
addressintThe address of the register to which the Harp message refers to.
timestampdoubleThe timestamp of the message payload, in seconds.
messageTypeMessageTypeThe type of the Harp message.
payloadTypePayloadTypeThe type of data available in the message payload.
payloadArraySegment<byte>An array segment containing the raw binary representation of the payload data.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, timestamp, and payload.
FromPayload(int, int, double, MessageType, PayloadType, ArraySegment<byte>)
Returns a HarpMessage with the specified address, message type, port, timestamp, and payload data stored in the specified array segment.
public static HarpMessage FromPayload(int address, int port, double timestamp, MessageType messageType, PayloadType payloadType, ArraySegment<byte> payload)
Parameters
addressintThe address of the register to which the Harp message refers to.
portintThe origin or destination of the Harp message, for routing purposes.
timestampdoubleThe timestamp of the message payload, in seconds.
messageTypeMessageTypeThe type of the Harp message.
payloadTypePayloadTypeThe type of data available in the message payload.
payloadArraySegment<byte>An array segment containing the raw binary representation of the payload data.
Returns
- HarpMessage
A valid HarpMessage instance with the specified address, message type, port, timestamp, and payload.