Instance MethodFoundationEssentials
copyBytes(to:from:)
iOS 8.0+
iPadOS 8.0+
Mac Catalyst 8.0+
macOS 10.10+
tvOS 9.0+
watchOS 2.0+
Copies a subset of the contents of the data to memory.
Parameters
pointerA pointer to the buffer you wish to copy the bytes into.
rangeThe range in the
Datato copy.
Discussion
Warning
This method does not verify that the contents at pointer have enough space to hold the required number of bytes.