Class ByteBufferReader

java.lang.Object
zombie.core.network.ByteBufferReader

public final class ByteBufferReader extends Object
  • Field Details

  • Constructor Details

    • ByteBufferReader

      public ByteBufferReader(ByteBuffer bb)
  • Method Details

    • getBoolean

      public boolean getBoolean()
    • getByte

      public byte getByte()
    • getChar

      public char getChar()
    • getDouble

      public double getDouble()
    • getFloat

      public float getFloat()
    • getInt

      public int getInt()
    • getLong

      public long getLong()
    • getShort

      public short getShort()
    • getUTF

      public String getUTF()
    • getEnum

      public <E extends Enum<E>> E getEnum(Class<E> clazz)
    • position

      public void position(int newPosition)
    • position

      public int position()
    • flip

      public void flip()
    • clear

      public void clear()
    • put

      public void put(byte[] src, int offset, int length)
    • limit

      public int limit()
    • put

      public void put(ByteBuffer src)
    • rewind

      public void rewind()
    • capacity

      public int capacity()
    • array

      public byte[] array()
    • remaining

      public int remaining()
    • get

      public void get(byte[] dst)
    • get

      public void get(byte[] dst, int offet, int length)
    • mark

      public void mark()
    • reset

      public void reset()