ByteBuffer.putLong

Absolute <i>put</i> method for writing a long value&nbsp;&nbsp;<i>(optional operation)</i>.

<p> Writes eight bytes containing the given long value, in the current byte order, into this buffer at the given index. </p>

@param index The index at which the bytes will be written

@param value The long value to be written

@return This buffer

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

@throws ReadOnlyBufferException If this buffer is read-only

  1. ByteBuffer putLong(long value)
  2. ByteBuffer putLong(int index, long value)
    class ByteBuffer
    abstract
    putLong
    (
    int index
    ,
    long value
    )

Meta