Exemplo n.º 1
0
 @Override
 public void decodeInto(ChannelHandlerContext ctx, ByteBuf source, ForgeMessage msg) {
   msg.fromBytes(source);
 }
Exemplo n.º 2
0
 @Override
 public void encodeInto(ChannelHandlerContext ctx, ForgeMessage msg, ByteBuf target)
     throws Exception {
   msg.toBytes(target);
 }