ByteBuffer.getLong

Absolute <i>get</i> method for reading a long value.

<p> Reads eight bytes at the given index, composing them into a long value according to the current byte order. </p>

@param index The index from which the bytes will be read

@return The long value at the given index

@throws IndexOutOfBoundsException If {@code index} is negative or not smaller than the buffer's limit, minus seven

  1. long getLong()
  2. long getLong(int index)
    class ByteBuffer
    abstract
    long
    getLong
    (
    int index
    )

Meta