ByteBuffer.PutInt Method

Definition

Overloads

PutInt(Int32)

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

PutInt(Int32, Int32)

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

PutInt(Int32)

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

[Android.Runtime.Register("putInt", "(I)Ljava/nio/ByteBuffer;", "GetPutInt_IHandler")]
public abstract Java.Nio.ByteBuffer PutInt (int value);
[<Android.Runtime.Register("putInt", "(I)Ljava/nio/ByteBuffer;", "GetPutInt_IHandler")>]
abstract member PutInt : int -> Java.Nio.ByteBuffer

Parameters

value
Int32

The int value to be written

Returns

This buffer

Attributes

Exceptions

if position is greater than limit - 4.

if no changes may be made to the contents of this buffer.

Remarks

Relative put method for writing an int value&nbsp;&nbsp;(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.

Java documentation for java.nio.ByteBuffer.putInt(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

PutInt(Int32, Int32)

Absolute put method for writing an int value&nbsp;&nbsp;(optional operation).

[Android.Runtime.Register("putInt", "(II)Ljava/nio/ByteBuffer;", "GetPutInt_IIHandler")]
public abstract Java.Nio.ByteBuffer PutInt (int index, int value);
[<Android.Runtime.Register("putInt", "(II)Ljava/nio/ByteBuffer;", "GetPutInt_IIHandler")>]
abstract member PutInt : int * int -> Java.Nio.ByteBuffer

Parameters

index
Int32

The index at which the bytes will be written

value
Int32

The int value to be written

Returns

This buffer

Attributes

Exceptions

if index is invalid.

if no changes may be made to the contents of this buffer.

Remarks

Absolute put method for writing an int value&nbsp;&nbsp;(optional operation).

Writes four bytes containing the given int value, in the current byte order, into this buffer at the given index.

Java documentation for java.nio.ByteBuffer.putInt(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to