Skip to content

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

bytes

A pointer to the memory. It will be copied.

count

The number of bytes to copy.