Java.Nio.ByteBuffer.Duplicate Method
Returns a duplicated buffer that shares its content with this buffer.

Syntax

[Android.Runtime.Register("duplicate", "()Ljava/nio/ByteBuffer;", "GetDuplicateHandler")]
public abstract ByteBuffer Duplicate ()

Returns

Documentation for this section has not yet been entered.

Remarks

Returns a duplicated buffer that shares its content with this buffer.

The duplicated buffer's position, limit, capacity and mark are the same as this buffer's. The duplicated buffer's read-only property is the same as this buffer's.

Note that in contrast to all non-byte buffers, byte order is not preserved in the duplicate, and is instead set to big-endian.

The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the other. The two buffers' position, limit and mark are independent.

[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