Class UnpooledByteBufAllocationHelper

java.lang.Object
com.github.retrooper.packetevents.netty.buffer.UnpooledByteBufAllocationHelper

public class UnpooledByteBufAllocationHelper extends Object
  • Constructor Details

    • UnpooledByteBufAllocationHelper

      public UnpooledByteBufAllocationHelper()
  • Method Details

    • wrappedBuffer

      public static Object wrappedBuffer(byte[] bytes)
    • copiedBuffer

      public static Object copiedBuffer(byte[] bytes)
    • buffer

      public static Object buffer()
    • directBuffer

      public static Object directBuffer()
    • compositeBuffer

      public static Object compositeBuffer()
    • buffer

      public static Object buffer(int initialCapacity)
    • directBuffer

      public static Object directBuffer(int initialCapacity)
    • compositeBuffer

      public static Object compositeBuffer(int maxNumComponents)