IntBuffer.Put IntBuffer.Put Method

Definition

Overloads

Put(IntBuffer) Put(IntBuffer)

Writes all the remaining ints of the src int buffer to this buffer's current position, and increases both buffers' position by the number of ints copied.

Put(Int32) Put(Int32)

Writes the given int to the current position and increases the position by 1.

Put(Int32[]) Put(Int32[])

Writes ints from the given int array to the current position and increases the position by the number of ints written.

Put(Int32, Int32) Put(Int32, Int32)

Write a int to the specified index of this buffer; the position is not changed.

Put(Int32[], Int32, Int32) Put(Int32[], Int32, Int32)

Writes ints from the given int array, starting from the specified offset, to the current position and increases the position by the number of ints written.

Put(IntBuffer) Put(IntBuffer)

Writes all the remaining ints of the src int buffer to this buffer's current position, and increases both buffers' position by the number of ints copied.

[Android.Runtime.Register("put", "(Ljava/nio/IntBuffer;)Ljava/nio/IntBuffer;", "GetPut_Ljava_nio_IntBuffer_Handler")]
public virtual Java.Nio.IntBuffer Put (Java.Nio.IntBuffer src);
abstract member Put : Java.Nio.IntBuffer -> Java.Nio.IntBuffer
override this.Put : Java.Nio.IntBuffer -> Java.Nio.IntBuffer

Parameters

src
IntBuffer IntBuffer

the source int buffer.

Returns

Exceptions

if src.remaining() is greater than this buffer's remaining().

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

Remarks

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.

Put(Int32) Put(Int32)

Writes the given int to the current position and increases the position by 1.

[Android.Runtime.Register("put", "(I)Ljava/nio/IntBuffer;", "GetPut_IHandler")]
public abstract Java.Nio.IntBuffer Put (int i);
abstract member Put : int -> Java.Nio.IntBuffer

Parameters

i
Int32 Int32

the int to write.

Returns

Exceptions

if position is equal or greater than limit.

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

Remarks

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.

Put(Int32[]) Put(Int32[])

Writes ints from the given int array to the current position and increases the position by the number of ints written.

[Android.Runtime.Register("put", "([I)Ljava/nio/IntBuffer;", "")]
public Java.Nio.IntBuffer Put (int[] src);
member this.Put : int[] -> Java.Nio.IntBuffer

Parameters

src
Int32[]

the source int array.

Returns

Exceptions

if remaining() is less than src.length.

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

Remarks

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.

Put(Int32, Int32) Put(Int32, Int32)

Write a int to the specified index of this buffer; the position is not changed.

[Android.Runtime.Register("put", "(II)Ljava/nio/IntBuffer;", "GetPut_IIHandler")]
public abstract Java.Nio.IntBuffer Put (int index, int i);
abstract member Put : int * int -> Java.Nio.IntBuffer

Parameters

index
Int32 Int32

the index, must not be negative and less than the limit.

i
Int32 Int32

the int to write.

Returns

Exceptions

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

Remarks

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.

Put(Int32[], Int32, Int32) Put(Int32[], Int32, Int32)

Writes ints from the given int array, starting from the specified offset, to the current position and increases the position by the number of ints written.

[Android.Runtime.Register("put", "([III)Ljava/nio/IntBuffer;", "GetPut_arrayIIIHandler")]
public virtual Java.Nio.IntBuffer Put (int[] src, int offset, int length);
abstract member Put : int[] * int * int -> Java.Nio.IntBuffer
override this.Put : int[] * int * int -> Java.Nio.IntBuffer

Parameters

src
Int32[]

the source int array.

offset
Int32 Int32
length
Int32 Int32

Returns

Exceptions

if remaining() is less than intCount.

if either srcOffset or intCount is invalid.

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

Remarks

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