Class ByteBufAllocationOperatorModernImpl

java.lang.Object
io.github.retrooper.packetevents.sponge.netty.buffer.ByteBufAllocationOperatorModernImpl
All Implemented Interfaces:
com.github.retrooper.packetevents.netty.buffer.ByteBufAllocationOperator

public class ByteBufAllocationOperatorModernImpl extends Object implements com.github.retrooper.packetevents.netty.buffer.ByteBufAllocationOperator
  • Constructor Details

    • ByteBufAllocationOperatorModernImpl

      public ByteBufAllocationOperatorModernImpl()
  • Method Details

    • wrappedBuffer

      public Object wrappedBuffer(byte[] bytes)
      Specified by:
      wrappedBuffer in interface com.github.retrooper.packetevents.netty.buffer.ByteBufAllocationOperator
    • copiedBuffer

      public Object copiedBuffer(byte[] bytes)
      Specified by:
      copiedBuffer in interface com.github.retrooper.packetevents.netty.buffer.ByteBufAllocationOperator
    • buffer

      public Object buffer()
      Specified by:
      buffer in interface com.github.retrooper.packetevents.netty.buffer.ByteBufAllocationOperator
    • buffer

      public Object buffer(int initialCapacity)
      Specified by:
      buffer in interface com.github.retrooper.packetevents.netty.buffer.ByteBufAllocationOperator
    • directBuffer

      public Object directBuffer()
      Specified by:
      directBuffer in interface com.github.retrooper.packetevents.netty.buffer.ByteBufAllocationOperator
    • directBuffer

      public Object directBuffer(int initialCapacity)
      Specified by:
      directBuffer in interface com.github.retrooper.packetevents.netty.buffer.ByteBufAllocationOperator
    • compositeBuffer

      public Object compositeBuffer()
      Specified by:
      compositeBuffer in interface com.github.retrooper.packetevents.netty.buffer.ByteBufAllocationOperator
    • compositeBuffer

      public Object compositeBuffer(int maxNumComponents)
      Specified by:
      compositeBuffer in interface com.github.retrooper.packetevents.netty.buffer.ByteBufAllocationOperator