Browse Source

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

master
Starbeamrainbowlabs 4 years ago
parent
commit
d2b32f3f09
  1. 17
      PixelHub-Server/PixelHub/PixelCommand.cs

17
PixelHub-Server/PixelHub/PixelCommand.cs

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