Class ByteBuffer

  • All Implemented Interfaces:
    Serializable

    public class ByteBuffer
    extends Object
    implements Serializable
    A simple byte buffer. The length specifies the fill level of the data-array.
    Author:
    Thomas Morgner
    See Also:
    Serialized Form
    • Constructor Detail

      • ByteBuffer

        public ByteBuffer​(int length)
      • ByteBuffer

        public ByteBuffer​(byte[] data)
      • ByteBuffer

        public ByteBuffer​(byte[] data,
                          int offset,
                          int length)
    • Method Detail

      • getData

        public byte[] getData()
      • setData

        public void setData​(byte[] data,
                            int length,
                            int offset)
      • getLength

        public int getLength()
      • getOffset

        public int getOffset()
      • getCursor

        public int getCursor()
      • ensureSize

        public void ensureSize​(int length)
      • setCursor

        public void setCursor​(int cursor)