unmapMemory(atOffset:size:completionHandler:)
Unmaps a chunk of host memory from the shared memory region.
Declaration
func unmapMemory(atOffset offset: UInt64, size: UInt64, completionHandler: @escaping @Sendable ((any Error)?) -> Void)func unmapMemory(atOffset offset: UInt64, size: UInt64) async throwsParameters
- offset:
The offset from the start of the shared memory region where the memory should be unmapped.
- size:
The size of the memory to be unmapped from the shared memory region.
- completionHandler:
Block called after memory has been successfully unmapped or on error. The error parameter passed to the block is
nilif the unmap operation is successful. The framework invokes the block on Devicequeue.