Class ByteBufOperatorImpl

java.lang.Object
io.github.retrooper.packetevents.impl.netty.buffer.ByteBufOperatorImpl
All Implemented Interfaces:
com.github.retrooper.packetevents.netty.buffer.ByteBufOperator

public class ByteBufOperatorImpl extends Object implements com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
  • Constructor Details

    • ByteBufOperatorImpl

      public ByteBufOperatorImpl()
  • Method Details

    • capacity

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

      public Object capacity(Object buffer, int capacity)
      Specified by:
      capacity in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • readerIndex

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

      public Object readerIndex(Object buffer, int readerIndex)
      Specified by:
      readerIndex in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • writerIndex

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

      public Object writerIndex(Object buffer, int writerIndex)
      Specified by:
      writerIndex in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • readableBytes

      public int readableBytes(Object buffer)
      Specified by:
      readableBytes in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • writableBytes

      public int writableBytes(Object buffer)
      Specified by:
      writableBytes in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • clear

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

      public byte readByte(Object buffer)
      Specified by:
      readByte in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • readShort

      public short readShort(Object buffer)
      Specified by:
      readShort in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • readMedium

      public int readMedium(Object buffer)
      Specified by:
      readMedium in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • readInt

      public int readInt(Object buffer)
      Specified by:
      readInt in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • readUnsignedInt

      public long readUnsignedInt(Object buffer)
      Specified by:
      readUnsignedInt in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • readLong

      public long readLong(Object buffer)
      Specified by:
      readLong in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • writeByte

      public void writeByte(Object buffer, int value)
      Specified by:
      writeByte in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • writeShort

      public void writeShort(Object buffer, int value)
      Specified by:
      writeShort in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • writeMedium

      public void writeMedium(Object buffer, int value)
      Specified by:
      writeMedium in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • writeInt

      public void writeInt(Object buffer, int value)
      Specified by:
      writeInt in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • writeLong

      public void writeLong(Object buffer, long value)
      Specified by:
      writeLong in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • getBytes

      public Object getBytes(Object buffer, int index, byte[] destination)
      Specified by:
      getBytes in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • getUnsignedByte

      public short getUnsignedByte(Object buffer, int index)
      Specified by:
      getUnsignedByte in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • isReadable

      public boolean isReadable(Object buffer)
      Specified by:
      isReadable in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • copy

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

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

      public boolean hasArray(Object buffer)
      Specified by:
      hasArray in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • array

      public byte[] array(Object buffer)
      Specified by:
      array in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • retain

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

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

      public Object readSlice(Object buffer, int length)
      Specified by:
      readSlice in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • readBytes

      public Object readBytes(Object buffer, byte[] destination, int destinationIndex, int length)
      Specified by:
      readBytes in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • readBytes

      public Object readBytes(Object buffer, int length)
      Specified by:
      readBytes in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • writeBytes

      public Object writeBytes(Object buffer, Object src)
      Specified by:
      writeBytes in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • writeBytes

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

      public Object writeBytes(Object buffer, byte[] bytes, int offset, int length)
      Specified by:
      writeBytes in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • readBytes

      public void readBytes(Object buffer, byte[] bytes)
      Specified by:
      readBytes in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • release

      public boolean release(Object buffer)
      Specified by:
      release in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • refCnt

      public int refCnt(Object buffer)
      Specified by:
      refCnt in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • skipBytes

      public Object skipBytes(Object buffer, int length)
      Specified by:
      skipBytes in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • toString

      public String toString(Object buffer, int index, int length, Charset charset)
      Specified by:
      toString in interface com.github.retrooper.packetevents.netty.buffer.ByteBufOperator
    • markReaderIndex

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

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

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

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