ByteBuffer.putInt

Absolute <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 given index. </p>

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

@param value The int value to be written

@return This buffer

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

@throws ReadOnlyBufferException If this buffer is read-only

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

Meta