SharedMemory.MapReadWrite 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 read/write mapping of the entire shared memory region.
[Android.Runtime.Register("mapReadWrite", "()Ljava/nio/ByteBuffer;", "", ApiSince=27)]
public Java.Nio.ByteBuffer MapReadWrite ();
[<Android.Runtime.Register("mapReadWrite", "()Ljava/nio/ByteBuffer;", "", ApiSince=27)>]
member this.MapReadWrite : unit -> Java.Nio.ByteBuffer
Returns
A ByteBuffer mapping
- Attributes
Remarks
Creates a read/write mapping of the entire shared memory region. This requires the the protection level of the shared memory is at least PROT_READ|PROT_WRITE or the map will fail.
Use #map(int, int, int)
to have more control over the mapping if desired. This is equivalent to map(OsConstants.PROT_READ | OsConstants.PROT_WRITE, 0, getSize())
Java documentation for android.os.SharedMemory.mapReadWrite()
.
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.