Contents

init(bytesNoCopy:deallocator:)

Initialize a data object without copying the bytes.

Declaration

init(bytesNoCopy bytes: UnsafeBufferPointer<UInt8>, deallocator: DispatchData.Deallocator = .free)

Parameters

  • bytes:

    A pointer to the bytes.

  • deallocator:

    Specifies the mechanism to free the indicated buffer.

See Also

Deprecated