encode

open fun encode(packet: Packet<out Any>): Array<Byte>