Skip to content

Initializer

init(bytes:)

Initialize a Data with copied memory content.
init(bytes buffer: UnsafeRawBufferPointer)

Parameters

bytes

A pointer to the memory. It will be copied.

count

The number of bytes to copy.