init(bytes:)
Initialize a data object with copied memory content.
Declaration
init(bytes buffer: UnsafeBufferPointer<UInt8>)Parameters
- buffer:
A pointer to the memory. It will be copied.
Initialize a data object with copied memory content.
init(bytes buffer: UnsafeBufferPointer<UInt8>)A pointer to the memory. It will be copied.