Interface ByteArray.Cursor

    • Method Detail

      • getIndex

        int getIndex()
        Returns:
        the current index of the cursor.
      • setIndex

        void setIndex​(int index)
        Sets the current index of the cursor. No bounds checking will occur until an access occurs.
        Parameters:
        index - The current index to set
      • get

        byte get()
        Specified by:
        get in interface IoRelativeReader
        Returns:
        the byte at the current position and advances the reader.
      • get

        void get​(IoBuffer bb)
        Gets enough bytes to fill the IoBuffer and advances the reader.
        Specified by:
        get in interface IoRelativeReader
        Parameters:
        bb - The IoBuffer that will contain the read bytes
      • getInt

        int getInt()
        Specified by:
        getInt in interface IoRelativeReader
        Returns:
        an int and advances the reader.