Class CompressionDecoder

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
net.minecraft.network.CompressionDecoder
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class CompressionDecoder extends io.netty.handler.codec.ByteToMessageDecoder
  • Nested Class Summary Link icon

    Nested classes/interfaces inherited from class io.netty.handler.codec.ByteToMessageDecoder Link icon

    io.netty.handler.codec.ByteToMessageDecoder.Cumulator

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler Link icon

    io.netty.channel.ChannelHandler.Sharable
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    private final Inflater
     
    static final int
     
    static final int
     
    private int
     
    private boolean
     

    Fields inherited from class io.netty.handler.codec.ByteToMessageDecoder Link icon

    COMPOSITE_CUMULATOR, MERGE_CUMULATOR
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    CompressionDecoder(int p_182675_, boolean p_182676_)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    protected void
    decode(io.netty.channel.ChannelHandlerContext p_129441_, io.netty.buffer.ByteBuf p_129442_, List<Object> p_129443_)
     
    private io.netty.buffer.ByteBuf
    inflate(io.netty.channel.ChannelHandlerContext p_295791_, int p_295281_)
     
    void
    setThreshold(int p_182678_, boolean p_182679_)
     
    private void
    setupInflaterInput(io.netty.buffer.ByteBuf p_296004_)
     

    Methods inherited from class io.netty.handler.codec.ByteToMessageDecoder Link icon

    actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter Link icon

    channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter Link icon

    ensureNotSharable, handlerAdded, isSharable

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.netty.channel.ChannelHandler Link icon

    handlerAdded
  • Field Details Link icon

    • MAXIMUM_COMPRESSED_LENGTH Link icon

      public static final int MAXIMUM_COMPRESSED_LENGTH
      See Also:
    • MAXIMUM_UNCOMPRESSED_LENGTH Link icon

      public static final int MAXIMUM_UNCOMPRESSED_LENGTH
      See Also:
    • inflater Link icon

      private final Inflater inflater
    • threshold Link icon

      private int threshold
    • validateDecompressed Link icon

      private boolean validateDecompressed
  • Constructor Details Link icon

    • CompressionDecoder Link icon

      public CompressionDecoder(int p_182675_, boolean p_182676_)
  • Method Details Link icon

    • decode Link icon

      protected void decode(io.netty.channel.ChannelHandlerContext p_129441_, io.netty.buffer.ByteBuf p_129442_, List<Object> p_129443_) throws Exception
      Specified by:
      decode in class io.netty.handler.codec.ByteToMessageDecoder
      Throws:
      Exception
    • setupInflaterInput Link icon

      private void setupInflaterInput(io.netty.buffer.ByteBuf p_296004_)
    • inflate Link icon

      private io.netty.buffer.ByteBuf inflate(io.netty.channel.ChannelHandlerContext p_295791_, int p_295281_) throws DataFormatException
      Throws:
      DataFormatException
    • setThreshold Link icon

      public void setThreshold(int p_182678_, boolean p_182679_)