Java.Nio.ByteBuffer.Put Method
Writes bytes in the given byte array, starting from the specified offset, to the current position and increases the position by the number of bytes written.

Syntax

[Android.Runtime.Register("put", "([BII)Ljava/nio/ByteBuffer;", "GetPut_arrayBIIHandler")]
public virtual ByteBuffer Put (byte[] src, int off, int len)

Parameters

src
the source byte array.
srcOffset
the offset of byte array, must not be negative and not greater than src.length.
byteCount
the number of bytes to write, must not be negative and not greater than src.length - srcOffset.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Nio.BufferOverflowExceptionif remaining() is less than byteCount.
Java.Lang.IndexOutOfBoundsExceptionif either srcOffset or byteCount is invalid.
Java.Nio.ReadOnlyBufferExceptionif no changes may be made to the contents of this buffer.

Remarks

Writes bytes in the given byte array, starting from the specified offset, to the current position and increases the position by the number of bytes written.

[Android Documentation]

Requirements

Namespace: Java.Nio
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1