public class PacketTcpCodec
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends PacketHandler> |
decode(com.google.common.io.ByteArrayDataInput buf) |
static byte[] |
encode(Packet<?> packet) |
public static byte[] encode(Packet<?> packet)
public static <T extends PacketHandler> java.util.Optional<Packet<T>> decode(com.google.common.io.ByteArrayDataInput buf) throws java.io.IOException
java.io.IOException