ByteBuffer.putLong

Relative <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 current position, and then increments the position by eight. </p>

@param value The long value to be written

@return This buffer

@throws BufferOverflowException If there are fewer than eight bytes remaining in this buffer

@throws ReadOnlyBufferException If this buffer is read-only

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

Meta