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