Class ByteSequence


  • public class ByteSequence
    extends Object
    • Field Detail

      • data

        public byte[] data
      • offset

        public int offset
      • length

        public int length
    • Constructor Detail

      • ByteSequence

        public ByteSequence()
      • ByteSequence

        public ByteSequence​(byte[] data)
      • ByteSequence

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

      • getData

        public byte[] getData()
      • getLength

        public int getLength()
      • getOffset

        public int getOffset()
      • remaining

        public int remaining()
      • setData

        public void setData​(byte[] data)
      • setLength

        public void setLength​(int length)
      • setOffset

        public void setOffset​(int offset)
      • compact

        public void compact()
      • reset

        public void reset()
      • indexOf

        public int indexOf​(ByteSequence needle,
                           int pos)
      • indexOf

        public final int indexOf​(byte value,
                                 int pos)
      • startsWith

        public boolean startsWith​(byte[] bytes)