ByteBuffer.putInt

Relative <i>put</i> method for writing an int value&nbsp;&nbsp;<i>(optional operation)</i>.

<p> Writes four bytes containing the given int value, in the current byte order, into this buffer at the current position, and then increments the position by four. </p>

@param value The int value to be written

@return This buffer

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

@throws ReadOnlyBufferException If this buffer is read-only

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

Meta