Manual Memory Management
Allocate and manage memory manually.
Topics
First Steps
Safe Memory Access
Safe Access to Raw Bytes
Typed Pointers
Raw Pointers
Memory Access
withUnsafePointer(to:_:)withUnsafePointer(to:_:)withUnsafeMutablePointer(to:_:)withUnsafeBytes(of:_:)withUnsafeMutableBytes(of:_:)withTemporaryAllocation(byteCount:alignment:_:)withTemporaryAllocation(of:capacity:_:)withUnsafeTemporaryAllocation(of:capacity:_:)withUnsafeTemporaryAllocation(byteCount:alignment:_:)swap(_:_:)exchange(_:with:)