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

Syntax

[Android.Runtime.Register("put", "([B)Ljava/nio/ByteBuffer;", "")]
public ByteBuffer Put (byte[] src)

Parameters

src
the source byte array.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Nio.BufferOverflowExceptionif remaining() is less than src.length.
Java.Nio.ReadOnlyBufferExceptionif no changes may be made to the contents of this buffer.

Remarks

Writes bytes in the given byte array to the current position and increases the position by the number of bytes written.

Calling this method has the same effect as put(src, 0, src.length).

[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