Creates an XPC object representing the given shared memory region.
- macOS 10.7+
- Mac Catalyst 13.0+Beta
A pointer to a region of shared memory, created through a call to mmap(2) with the MAP_SHARED flag, which is to be boxed.
The length of the region.
A new shared memory object.
This API is NOT for making a private region of memory shareable. It is to allow for already-shareable regions of memory to be boxed in an XPC object. Do not pass a region allocated with malloc(3) or friends to this API.