// Header returns the FixedHeader of this packet.
Header returns the FixedHeader of this packet.
// Header returns the FixedHeader of this packet .
func (pkt *SubscribePacket) Header() *FixedHeader {
	length := 2 + len(pkt.Topics)*(2+1)
	for _, topic := range pkt.Topics {
		length += len(topic.Name)
	}
	pkt.header.Length = length
	return pkt.header
}
func ( pkt * SubscribePacket ) Header ( ) * FixedHeader { length := 2 + len ( pkt . Topics ) * ( 2 + 1 ) for _ , topic := range pkt . Topics { length += len ( topic . Name ) } pkt . header . Length = length return pkt . header }
Header returns the FixedHeader of this packet.
Header returns the FixedHeader of this packet .
// MessageID + Topics*(Topic Length + QoS)