Java.Nio.LongBuffer.AsReadOnlyBuffer Method
Returns a read-only buffer that shares its content with this buffer.

Syntax

[Android.Runtime.Register("asReadOnlyBuffer", "()Ljava/nio/LongBuffer;", "GetAsReadOnlyBufferHandler")]
public abstract LongBuffer AsReadOnlyBuffer ()

Returns

Documentation for this section has not yet been entered.

Remarks

Returns a read-only buffer that shares its content with this buffer.

The returned buffer is guaranteed to be a new instance, even if this buffer is read-only itself. The new buffer's position, limit, capacity and mark are the same as this buffer's.

The new buffer shares its content with this buffer, which means this buffer's change of content will be visible to the new buffer. The two buffer's 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