Skip to content

Initializer

init(bytesNoCopy:deallocator:)

Initialize a Data without copying the bytes.
init(bytesNoCopy bytes: UnsafeRawBufferPointer, deallocator: DispatchData.Deallocator = .free)

Parameters

bytes

A pointer to the bytes.

count

The size of the bytes.

deallocator

Specifies the mechanism to free the indicated buffer.