Interface StructuredReadableBuffer

    • Method Detail

      • get

        byte get​(int index)
        Gets the value at the specified index.
        Parameters:
        index - The index to get the value at.
        Returns:
        The byte at the specified index.
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - If index is invalid.
      • getShort

        short getShort​(int index)
        Gets the 16 bit Short value at the specified index.
        Parameters:
        index - The index to get the value at.
        Returns:
        The Short at the specified index.
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - If index is invalid or if there is insufficient space in the array starting at the specified index to fit the given value.
      • getInt

        int getInt​(int index)
        Gets the 32 bit Int value at the specified index.
        Parameters:
        index - The index to get the value at.
        Returns:
        The Integer at the specified index.
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - If index is invalid or if there is insufficient space in the array starting at the specified index to fit the given value.
      • getLong

        long getLong​(int index)
        Gets the 64 bit Long value at the specified index.
        Parameters:
        index - The index to get the value at.
        Returns:
        The Long at the specified index.
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - If index is invalid or if there is insufficient space in the array starting at the specified index to fit the given value.
      • getUnsignedLong

        default long getUnsignedLong​(int index)
        Gets a 64 bit Unsigned Long from the specified index. This value must have been serialized using StructuredWritableBuffer.setUnsignedLong(int, long) for proper results. This method is not interoperable with StructuredWritableBuffer.setLong(int, long).
        Parameters:
        index - The index to get the value at.
        Returns:
        The Long at the specified index.
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - If index is invalid or if there is insufficient space in the array starting at the specified index to fit the given value.