Class ByteBufHelper

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

public class ByteBufHelper extends Object
  • Constructor Details

    • ByteBufHelper

      public ByteBufHelper()
  • Method Details

    • capacity

      public static int capacity(Object buffer)
    • capacity

      public static Object capacity(Object buffer, int capacity)
    • readerIndex

      public static int readerIndex(Object buffer)
    • readerIndex

      public static Object readerIndex(Object buffer, int readerIndex)
    • writerIndex

      public static int writerIndex(Object buffer)
    • writerIndex

      public static Object writerIndex(Object buffer, int writerIndex)
    • readableBytes

      public static int readableBytes(Object buffer)
    • writableBytes

      public static int writableBytes(Object buffer)
    • clear

      public static Object clear(Object buffer)
    • toString

      public static String toString(Object buffer, int index, int length, Charset charset)
    • readByte

      public static byte readByte(Object buffer)
    • writeByte

      public static void writeByte(Object buffer, int value)
    • readBoolean

      public static boolean readBoolean(Object buffer)
    • writeBoolean

      public static void writeBoolean(Object buffer, boolean value)
    • readUnsignedByte

      public static short readUnsignedByte(Object buffer)
    • readChar

      public static char readChar(Object buffer)
    • writeChar

      public static void writeChar(Object buffer, int value)
    • readShort

      public static short readShort(Object buffer)
    • readUnsignedShort

      public static int readUnsignedShort(Object buffer)
    • writeShort

      public static void writeShort(Object buffer, int value)
    • readMedium

      public static int readMedium(Object buffer)
    • writeMedium

      public static void writeMedium(Object buffer, int value)
    • readInt

      public static int readInt(Object buffer)
    • writeInt

      public static void writeInt(Object buffer, int value)
    • readUnsignedInt

      public static long readUnsignedInt(Object buffer)
    • readLong

      public static long readLong(Object buffer)
    • writeLong

      public static void writeLong(Object buffer, long value)
    • readFloat

      public static float readFloat(Object buffer)
    • writeFloat

      public static void writeFloat(Object buffer, float value)
    • readDouble

      public static double readDouble(Object buffer)
    • writeDouble

      public static void writeDouble(Object buffer, double value)
    • getBytes

      public static Object getBytes(Object buffer, int index, byte[] destination)
    • getUnsignedByte

      public static short getUnsignedByte(Object buffer, int index)
    • isReadable

      public static boolean isReadable(Object buffer)
    • copy

      public static Object copy(Object buffer)
    • duplicate

      public static Object duplicate(Object buffer)
    • hasArray

      public static boolean hasArray(Object buffer)
    • array

      public static byte[] array(Object buffer)
    • retain

      public static Object retain(Object buffer)
    • retainedDuplicate

      public static Object retainedDuplicate(Object buffer)
    • readSlice

      public static Object readSlice(Object buffer, int length)
    • readBytes

      public static Object readBytes(Object buffer, byte[] destination, int destinationIndex, int length)
    • readBytes

      public static Object readBytes(Object buffer, int length)
    • writeBytes

      public static Object writeBytes(Object buffer, Object src)
    • readBytes

      public static void readBytes(Object buffer, byte[] bytes)
    • writeBytes

      public static void writeBytes(Object buffer, byte[] bytes)
    • writeBytes

      public static void writeBytes(Object buffer, byte[] bytes, int offset, int length)
    • release

      public static boolean release(Object buffer)
    • refCnt

      public static int refCnt(Object buffer)
    • skipBytes

      public static Object skipBytes(Object buffer, int length)
    • markReaderIndex

      public static Object markReaderIndex(Object buffer)
    • resetReaderIndex

      public static Object resetReaderIndex(Object buffer)
    • markWriterIndex

      public static Object markWriterIndex(Object buffer)
    • resetWriterIndex

      public static Object resetWriterIndex(Object buffer)
    • readVarInt

      public static int readVarInt(Object buffer)
    • writeVarInt

      public static void writeVarInt(Object buffer, int value)
    • copyBytes

      public static byte[] copyBytes(Object buffer)