Enumeration

DispatchData.Deallocator

Memory deallocators for dispatch data objects.

Declaration

enum DispatchData.Deallocator

Topics

Deallocators

case free

Use free to deallocate memory.

case unmap

Use munmap to deallocate memory.

See Also

Creating a Dispatch Data Structure

init(bytes: UnsafeRawBufferPointer)

Creates a new dispatch data object from the specified memory buffer.

init(bytesNoCopy: UnsafeRawBufferPointer, deallocator: DispatchData.Deallocator)

Creates a new dispatch data object using the specified memory buffer and deallocator.

static let empty: DispatchData

A dispatch data object representing a zero-length memory region.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software