UnsafeMutableBufferPointer
A nonowning collection interface to a buffer of mutable elements stored contiguously in memory.
Declaration
@frozen struct UnsafeMutableBufferPointer<Element> where Element : ~CopyableOverview
You can use an UnsafeMutableBufferPointer instance in low level operations to eliminate uniqueness checks and, in release mode, bounds checks. Bounds checks are always performed in debug mode.
UnsafeMutableBufferPointer Semantics
An UnsafeMutableBufferPointer instance is a view into memory and does not own the memory that it references. Copying a value of type UnsafeMutableBufferPointer does not copy the instances stored in the underlying memory. However, initializing another collection with an UnsafeMutableBufferPointer instance copies the instances out of the referenced memory and into the new collection.
Topics
Initializers
Instance Properties
Instance Methods
assign(repeating:)deallocate()deinitialize()deinitializeElement(at:)extracting(_:)extracting(_:)extracting(_:)initialize(from:)initialize(fromContentsOf:)initialize(repeating:)initializeElement(at:to:)moveElement(from:)moveInitialize(fromContentsOf:)moveInitialize(fromContentsOf:)moveUpdate(fromContentsOf:)moveUpdate(fromContentsOf:)update(from:)update(fromContentsOf:)update(repeating:)withMemoryRebound(to:_:)