func (pkt *UnsubscribePacket) Header() *FixedHeader {
	// MessageID + Topics*(Topic Length)
	length := 2 + len(pkt.Topics)*(2)
	for _, topic := range pkt.Topics {
		length += len(topic)
	}
	pkt.header.Length = length
	return pkt.header
}
// Header returns the FixedHeader of this packet.
Header returns the FixedHeader of this packet.
// Header returns the FixedHeader of this packet .
func (pkt *UnsubscribePacket) Header() *FixedHeader {
	length := 2 + len(pkt.Topics)*(2)
	for _, topic := range pkt.Topics {
		length += len(topic)
	}
	pkt.header.Length = length
	return pkt.header
}
func ( pkt * UnsubscribePacket ) Header ( ) * FixedHeader { length := 2 + len ( pkt . Topics ) * ( 2 ) for _ , topic := range pkt . Topics { length += len ( topic ) } 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)