Class GrowableByteBuffer

java.lang.Object
org.ngengine.network.protocol.GrowableByteBuffer

public class GrowableByteBuffer extends Object
  • Constructor Details

    • GrowableByteBuffer

      public GrowableByteBuffer(ByteBuffer initial, int chunkSize)
  • Method Details

    • getBuffer

      public ByteBuffer getBuffer()
    • remaining

      public int remaining()
    • put

      public void put(byte[] data)
    • putShort

      public void putShort(short value)
    • putInt

      public void putInt(int value)
    • putLong

      public void putLong(long value)
    • putFloat

      public void putFloat(float value)
    • putDouble

      public void putDouble(double value)
    • putChar

      public void putChar(char value)
    • put

      public void put(byte value)
    • put

      public void put(byte[] data, int offset, int length)
    • get

      public byte get()
    • get

      public byte get(int index)
    • getShort

      public short getShort()
    • getShort

      public short getShort(int index)
    • getInt

      public int getInt()
    • getInt

      public int getInt(int index)
    • getLong

      public long getLong()
    • getLong

      public long getLong(int index)
    • getFloat

      public float getFloat()
    • getFloat

      public float getFloat(int index)
    • getDouble

      public double getDouble()
    • getDouble

      public double getDouble(int index)
    • getChar

      public char getChar()
    • getChar

      public char getChar(int index)
    • position

      public int position()
    • position

      public void position(int newPosition)
    • flip

      public void flip()
    • slice

      public ByteBuffer slice()
    • limit

      public int limit()
    • clear

      public void clear()
    • capacity

      public int capacity()
    • limit

      public void limit(int newLimit)
    • put

      public void put(ByteBuffer data)
    • get

      public void get(byte[] inputBytes)