Skip to content

Instance Method

copyBytes(to:from:)

Copy a subset of the contents of the data to a pointer.
func copyBytes(to pointer: UnsafeMutableRawBufferPointer, from range: Range<DispatchData.Index>)

Parameters

pointer

A pointer to the buffer you wish to copy the bytes into. The buffer must be large enough to hold count bytes.

range

The range in the Data to copy.