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
1 changed files with 16 additions and 1 deletions

View File

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