SharedMemory.Create(String, 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 anonymous SharedMemory instance with the provided debug name and size.
[Android.Runtime.Register("create", "(Ljava/lang/String;I)Landroid/os/SharedMemory;", "", ApiSince=27)]
public static Android.OS.SharedMemory Create (string? name, int size);
[<Android.Runtime.Register("create", "(Ljava/lang/String;I)Landroid/os/SharedMemory;", "", ApiSince=27)>]
static member Create : string * int -> Android.OS.SharedMemory
Parameters
- name
- String
The debug name to use for this SharedMemory instance. This can be null, however a debug name is recommended to help identify memory usage when using tools such as lsof or examining /proc/[pid]/maps
- size
- Int32
The size of the shared memory to create. Must be greater than 0.
Returns
A SharedMemory instance of the requested size
- Attributes
Remarks
Creates an anonymous SharedMemory instance with the provided debug name and size. The name is only used for debugging purposes and can help identify what the shared memory is used for when inspecting memory maps for the processes that have mapped this SharedMemory instance.
Java documentation for android.os.SharedMemory.create(java.lang.String, 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.