|
|
@ -41,6 +41,11 @@ namespace PixelHub |
|
|
|
/// </summary>
|
|
|
|
private static Random rand = new Random(); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The size of the pixel message header, in bytes.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly int HeaderSize = 12; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The protocol version that this message is written in.
|
|
|
|
/// </summary>
|
|
|
@ -62,6 +67,16 @@ namespace PixelHub |
|
|
|
/// </summary>
|
|
|
|
public uint MessageLength = 0; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The header of the message.
|
|
|
|
/// </summary>
|
|
|
|
public byte[] Header |
|
|
|
{ |
|
|
|
get { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The payload of the message.
|
|
|
|
/// </summary>
|
|
|
@ -76,7 +91,7 @@ namespace PixelHub |
|
|
|
|
|
|
|
public byte[] AsCompiledCommand() |
|
|
|
{ |
|
|
|
throw new NotImplementedException(); |
|
|
|
byte[] message = new byte[HeaderSize + Payload.Length]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |