init(bytesNoCopy:deallocator:)
Creates a new dispatch data object using the specified memory buffer and deallocator.
Declaration
init(bytesNoCopy bytes: UnsafeRawBufferPointer, deallocator: DispatchData.Deallocator = .free)Parameters
- bytes:
A contiguous buffer of memory containing the initial data.
- deallocator:
The deallocator responsible for releasing the memory associated with the data object. For a list of possible options, see Deallocator.