public class NettyPacketEncoder extends io.netty.handler.codec.MessageToByteEncoder<Packet<?>>
Constructor and Description |
---|
NettyPacketEncoder(EnumPacketDirection direction) |
Modifier and Type | Method and Description |
---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext p_encode_1_,
Packet<?> p_encode_2_,
io.netty.buffer.ByteBuf p_encode_3_) |
acceptOutboundMessage, allocateBuffer, isPreferDirect, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
public NettyPacketEncoder(EnumPacketDirection direction)
protected void encode(io.netty.channel.ChannelHandlerContext p_encode_1_, Packet<?> p_encode_2_, io.netty.buffer.ByteBuf p_encode_3_) throws java.io.IOException, java.lang.Exception
encode
in class io.netty.handler.codec.MessageToByteEncoder<Packet<?>>
java.io.IOException
java.lang.Exception