This allows subclasses of Packet to just call the new method instead of having to duplicate the header writing and compression code.
This allows subclasses of Packet to just call the new method instead of having to duplicate the header writing and compression code.