//methods
 /// <summary>
 /// Encodes the headers.
 /// </summary>
 protected void EncodePacketHeaders(Guid producerId, IList<UInt16> dataSetWriterIds)
 {
     Header = PacketHeader.GetProducerPacketHeader(this, producerId, dataSetWriterIds);
       Header.WritePacketHeader();
 }
 //methods
 /// <summary>
 /// Encodes the headers.
 /// </summary>
 protected void EncodePacketHeaders(Guid producerId, IList <UInt16> dataSetWriterIds)
 {
     Header = PacketHeader.GetProducerPacketHeader(this, producerId, dataSetWriterIds);
     Header.WritePacketHeader();
 }