Contents

init(buffer:)

Creates a data buffer with copied memory content using a buffer pointer.

Declaration

init<SourceType>(buffer: UnsafeBufferPointer<SourceType>)

Parameters

  • buffer:

    A buffer pointer to copy. The size is calculated from SourceType and buffer.count.

See Also

Creating Populated Data