Initializer

init(bytes:length:)

Returns a data object initialized by adding to it a given number of bytes of data copied from a given buffer.

Declaration

init(bytes: UnsafeRawPointer?, length: Int)

Discussion

A data object initialized by adding to it length bytes of data copied from the buffer bytes. The returned object might be different than the original receiver.