MappedByteBuffer.Clear Method

Definition

Clears this buffer.

[Android.Runtime.Register("clear", "()Ljava/nio/Buffer;", "", ApiSince=35)]
public override sealed Java.Nio.Buffer? Clear();
[<Android.Runtime.Register("clear", "()Ljava/nio/Buffer;", "", ApiSince=35)>]
override this.Clear : unit -> Java.Nio.Buffer

Returns

This buffer

Attributes

Remarks

Sets the position to zero, sets the limit to the capacity, and discards the mark. This operation does not erase the buffer's elements.

Java documentation for java.nio.MappedByteBuffer.clear().

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.

Applies to