SharedMemory.Map(Int32, Int32, Int32) 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 an mmap of the SharedMemory with the specified prot, offset, and length.
[Android.Runtime.Register("map", "(III)Ljava/nio/ByteBuffer;", "", ApiSince=27)]
public Java.Nio.ByteBuffer Map (int prot, int offset, int length);
[<Android.Runtime.Register("map", "(III)Ljava/nio/ByteBuffer;", "", ApiSince=27)>]
member this.Map : int * int * int -> Java.Nio.ByteBuffer
Parameters
- prot
- Int32
A bitwise-or'd combination of PROT_READ, PROT_WRITE, PROT_EXEC, or PROT_NONE.
- offset
- Int32
The offset into the shared memory to begin mapping. Must be >= 0 and less than getSize().
- length
- Int32
The length of the region to map. Must be > 0 and offset + length must not exceed getSize().
Returns
A ByteBuffer mapping.
- Attributes
Remarks
Creates an mmap of the SharedMemory with the specified prot, offset, and length. This will always produce a new ByteBuffer window to the backing shared memory region. Every call to map() may be paired with a call to #unmap(ByteBuffer)
when the ByteBuffer returned by map() is no longer needed.
Java documentation for android.os.SharedMemory.map(int, int, int)
.
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.