putInt

fun putInt(value: Int): ByteBuffer

Relative put method for writing an int value  (optional operation).

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.

Return

This buffer

Parameters

value

The int value to be written

Throws

If there are fewer than four bytes remaining in this buffer

If this buffer is read-only