func (p Packet) Write(w io.Writer) error {
	if err := binary.Write(w, binary.BigEndian, p.Header); err != nil {
		return err
	}
	return p.Data.Write(w)
}
// Write will write a packet to a writer.
Write will write a packet to a writer.
// Write will write a packet to a writer .
func (p Packet) Write(w io.Writer) error {
	if err := binary.Write(w, binary.BigEndian, p.Header); err != nil {
		return err
	}
	return p.Data.Write(w)
}
func ( p Packet ) Write ( w io . Writer ) error { if err := binary . Write ( w , binary . BigEndian , p . Header ) ; err != nil { return err } return p . Data . Write ( w ) }
Write will write a packet to a writer.
Write will write a packet to a writer .