Fill in a little bit more of PixelCommand.AsCompiledCommand()
This commit is contained in:
parent
a2173bc0e3
commit
d2b32f3f09
1 changed files with 16 additions and 1 deletions
|
@ -41,6 +41,11 @@ namespace PixelHub
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static Random rand = new Random();
|
private static Random rand = new Random();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The size of the pixel message header, in bytes.
|
||||||
|
/// </summary>
|
||||||
|
public static readonly int HeaderSize = 12;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The protocol version that this message is written in.
|
/// The protocol version that this message is written in.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -62,6 +67,16 @@ namespace PixelHub
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public uint MessageLength = 0;
|
public uint MessageLength = 0;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The header of the message.
|
||||||
|
/// </summary>
|
||||||
|
public byte[] Header
|
||||||
|
{
|
||||||
|
get {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The payload of the message.
|
/// The payload of the message.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -76,7 +91,7 @@ namespace PixelHub
|
||||||
|
|
||||||
public byte[] AsCompiledCommand()
|
public byte[] AsCompiledCommand()
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
byte[] message = new byte[HeaderSize + Payload.Length];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in a new issue