Initializer
init(bytes:count:)
iOS 8.0+
iPadOS 8.0+
Mac Catalyst 8.0+
macOS 10.10+
tvOS 9.0+
watchOS 2.0+
Creates data with copied memory content.
init(bytes: UnsafeRawPointer, count: Int)
Parameters
bytesA pointer to the memory. It will be copied.
countThe number of bytes to copy.