Class DynamicByteBuffer

java.lang.Object
de.mid.innovator.util.DynamicByteBuffer

public class DynamicByteBuffer extends Object
  • Constructor Details

    • DynamicByteBuffer

      public DynamicByteBuffer()
    • DynamicByteBuffer

      public DynamicByteBuffer(int size)
    • DynamicByteBuffer

      public DynamicByteBuffer(ByteBuffer bb)
    • DynamicByteBuffer

      public DynamicByteBuffer(byte[] ba)
  • Method Details

    • position

      public int position()
    • position

      public Buffer position(int newPosition)
    • put

      public DynamicByteBuffer put(byte b)
    • put

      public DynamicByteBuffer put(byte[] src)
    • put

      public DynamicByteBuffer put(byte[] src, int offset, int length)
    • putChar

      public DynamicByteBuffer putChar(char value)
    • putInt

      public DynamicByteBuffer putInt(int value)
    • putInt

      public DynamicByteBuffer putInt(int value, int index)
    • putShort

      public DynamicByteBuffer putShort(short value)
    • putShort

      public DynamicByteBuffer putShort(short value, int index)
    • remaining

      public int remaining()
    • reset

      public Buffer reset()
    • rewind

      public Buffer rewind()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • array

      public byte[] array()
    • get

      public byte get()
    • get

      public ByteBuffer get(byte[] dst)
    • get

      public DynamicByteBuffer get(byte[] dst, int offset, int length)
    • get

      public byte get(int index)
    • getChar

      public char getChar()
    • getChar

      public char getChar(int index)
    • getDouble

      public double getDouble()
    • getDouble

      public double getDouble(int index)
    • getFloat

      public float getFloat()
    • getFloat

      public float getFloat(int index)
    • getInt

      public int getInt()
    • getInt

      public int getInt(int index)
    • getLong

      public long getLong()
    • getLong

      public long getLong(int index)
    • getShort

      public short getShort()
    • getShort

      public short getShort(int index)
    • getByte

      public byte getByte()
    • putString

      public DynamicByteBuffer putString(String value)
    • getString

      public String getString()
    • capacity

      public int capacity()
    • clear

      public Buffer clear()
    • flip

      public Buffer flip()
    • limit

      public int limit()
    • limit

      public Buffer limit(int newLimit)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • mark

      public void mark()
    • announceCapacity

      public void announceCapacity(int amount)