copyBytes(to:count:)

Copy the contents of the data to a pointer.

iOS
8.0+
macOS
10.10+
tvOS
9.0+
watchOS
2.0+
func copyBytes(to pointer: UnsafeMutablePointer<UInt8>, count: Int)

Parameters

pointer

A pointer to the buffer you wish to copy the bytes into.

count

The number of bytes to copy.