Contents

copyBytes(to:from:)

Copies a subset of the contents of the data to memory.

Declaration

func copyBytes(to pointer: UnsafeMutablePointer<UInt8>, from range: Range<Data.Index>)

Parameters

  • pointer:

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

  • range:

    The range in the Data to copy.

Discussion

See Also

Accessing Underlying Memory