Skip to content

Initializer

init(buffer:)

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
Creates a data buffer with copied memory content using a buffer pointer.
init<SourceType>(buffer: UnsafeBufferPointer<SourceType>)

Parameters

buffer

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