Fill in a little bit more of PixelCommand.AsCompiledCommand()

This commit is contained in:
Starbeamrainbowlabs 2017-03-03 06:41:46 +00:00
parent a2173bc0e3
commit d2b32f3f09

View file

@ -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];
} }
} }
} }