SharedMemory.Unmap(ByteBuffer) Method

Definition

Unmaps a buffer previously returned by #map(int, int, int).

[Android.Runtime.Register("unmap", "(Ljava/nio/ByteBuffer;)V", "", ApiSince=27)]
public static void Unmap (Java.Nio.ByteBuffer buffer);
[<Android.Runtime.Register("unmap", "(Ljava/nio/ByteBuffer;)V", "", ApiSince=27)>]
static member Unmap : Java.Nio.ByteBuffer -> unit

Parameters

buffer
ByteBuffer

The buffer to unmap

Attributes

Remarks

Unmaps a buffer previously returned by #map(int, int, int). This will immediately release the backing memory of the ByteBuffer, invalidating all references to it. Only call this method if there are no duplicates of the ByteBuffer in use and don't access the ByteBuffer after calling this method.

Java documentation for android.os.SharedMemory.unmap(java.nio.ByteBuffer).

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