MappedByteBuffer.Duplicate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new byte buffer that shares this buffer's content.
[Android.Runtime.Register("duplicate", "()Ljava/nio/ByteBuffer;", "GetDuplicateHandler", ApiSince=34)]
public override Java.Nio.ByteBuffer? Duplicate();
[<Android.Runtime.Register("duplicate", "()Ljava/nio/ByteBuffer;", "GetDuplicateHandler", ApiSince=34)>]
override this.Duplicate : unit -> Java.Nio.ByteBuffer
Returns
A new buffer that shares this buffer's content
- Attributes
Remarks
Changes to either buffer's content are visible to the other buffer. Their position, limit, and mark values are independent.
Java documentation for java.nio.MappedByteBuffer.duplicate().
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.