Package net.md_5.bungee.protocol
Class Varint21LengthFieldPrepender
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- io.netty.handler.codec.MessageToMessageEncoder<io.netty.buffer.ByteBuf>
-
- net.md_5.bungee.protocol.Varint21LengthFieldPrepender
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelOutboundHandler
public class Varint21LengthFieldPrepender extends io.netty.handler.codec.MessageToMessageEncoder<io.netty.buffer.ByteBuf>Prepend length of the message as a Varint21 by writing length and data to a new buffer
-
-
Constructor Summary
Constructors Constructor Description Varint21LengthFieldPrepender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidencode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf msg, List<Object> list)voidsetCompose(boolean compose)-
Methods inherited from class io.netty.handler.codec.MessageToMessageEncoder
acceptOutboundMessage, write
-
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
encode
protected void encode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf msg, List<Object> list) throws Exception- Specified by:
encodein classio.netty.handler.codec.MessageToMessageEncoder<io.netty.buffer.ByteBuf>- Throws:
Exception
-
setCompose
public void setCompose(boolean compose)
-
-