Initializer

init(bytes:)

Initialize a data object with copied memory content.

Declaration

init(bytes buffer: UnsafeBufferPointer<UInt8>)

Parameters

bytes

A pointer to the memory. It will be copied.