mapMemory(_:atOffset:size:completionHandler:)
Maps a chunk of host memory into the shared memory region.
Declaration
func mapMemory(_ memory: UnsafeMutableRawPointer, atOffset offset: UInt64, size: UInt64, completionHandler: @escaping @Sendable ((any Error)?) -> Void)func mapMemory(_ memory: UnsafeMutableRawPointer, atOffset offset: UInt64, size: UInt64) async throwsParameters
- memory:
A pointer to host memory to map into the shared memory region.
- offset:
The offset from the start of the shared memory region where the memory should map to.
- size:
The size of the memory to map into the shared memory region.
- completionHandler:
A block the framework calls after successfully mapping the memory, or on an error. The error parameter passed to the block is
nilif the map operation is successful. The framework invokes the block on Devicequeue.