/// <summary>
 /// Initializes a new instance of the StreamObjectHeaderEnd16bit class with the specified type value.
 /// </summary>
 /// <param name="headerType">Specify the value of the type.</param>
 public StreamObjectHeaderEnd16bit(StreamObjectTypeHeaderEnd headerType)
     : this((int)headerType)
 {
 }
 /// <summary>
 /// Initializes a new instance of the StreamObjectHeaderEnd8bit class with the specified type value.
 /// </summary>
 /// <param name="type">Specify the value of the type.</param>
 public StreamObjectHeaderEnd8bit(StreamObjectTypeHeaderEnd type)
     : this((int)type)
 {
 }
 /// <summary>
 /// Initializes a new instance of the StreamObjectHeaderEnd16bit class with the specified type value.
 /// </summary>
 /// <param name="headerType">Specify the value of the type.</param>
 public StreamObjectHeaderEnd16bit(StreamObjectTypeHeaderEnd headerType)
     : this((int)headerType)
 {
 }
 /// <summary>
 /// Initializes a new instance of the StreamObjectHeaderEnd8bit class with the specified type value.
 /// </summary>
 /// <param name="type">Specify the value of the type.</param>
 public StreamObjectHeaderEnd8bit(StreamObjectTypeHeaderEnd type)
     : this((int)type)
 {
 }
 /// <summary>
 /// Parse the bit8StreamObjectHeaderEnd structure.
 /// </summary>
 /// <param name="s">An stream containing bit8StreamObjectHeaderEnd structure.</param>
 public override void Parse(Stream s)
 {
     base.Parse(s);
     int index = 0;
     byte temp = ReadByte();
     // TODO
     this.Type = (StreamObjectTypeHeaderEnd)GetBits(temp, index, 6);
     index = index + 6;
     this.A = (byte)GetBits(temp, index, 2);
 }
 /// <summary>
 /// Parse the bit16StreamObjectHeaderEnd structure.
 /// </summary>
 /// <param name="s">An stream containing bit16StreamObjectHeaderEnd structure.</param>
 public override void Parse(Stream s)
 {
     base.Parse(s);
     int index = 0;
     short temp = ReadINT16();
     // TODO need revert the temp.
     this.A = (byte)GetBits(temp, index, 2);
     index = index + 2;
     this.Type = (StreamObjectTypeHeaderEnd)GetBits(temp, index, 14);
 }