![]() |
Roboid Control for C#
|
A message containing binary data for custom communication.
Public Member Functions | |
| BinaryMsg (byte networkId, byte thingId, byte[] bytes) | |
| Create a new message for sending. | |
| BinaryMsg (byte networkId, Thing thing) | |
| Create an empty message for sending. | |
| BinaryMsg (byte[] buffer) | |
| Create a message for receiving. | |
| override byte | Serialize (ref byte[] buffer) |
| Serialize the message into a byte array for sending. | |
Public Attributes | |
| byte | networkId |
| The network ID identifying the thing. | |
| byte | thingId |
| The ID of the thing. | |
| byte[] | bytes |
| The binary data. | |
Static Public Attributes | |
| const byte | Id = 0xB1 |
| The message ID. | |
| const byte | length = 2 |
| The length of the message, excluding the binary data. | |
| Passer.RoboidControl.BinaryMsg.BinaryMsg | ( | byte | networkId, |
| byte | thingId, | ||
| byte[] | bytes | ||
| ) |
Create a new message for sending.
| networkId | The netowork ID of the thing |
| thingId | The ID of the thing |
| bytes | The binary data for the thing |
| Passer.RoboidControl.BinaryMsg.BinaryMsg | ( | byte | networkId, |
| Thing | thing | ||
| ) |
Create an empty message for sending.
| networkId | The netowork ID of the thing |
| thingId | The ID of the thing |
| Passer.RoboidControl.BinaryMsg.BinaryMsg | ( | byte[] | buffer | ) |
Create a message for receiving.
| buffer | The byte array to parse |
|
virtual |
Serialize the message into a byte array for sending.
| buffer | The buffer to serilize into |
Reimplemented from Passer.RoboidControl.IMessage.
|
static |
The length of the message, excluding the binary data.
For the total size of the message this.bytes.Length should be added to this value.