mirror of
https://github.com/apple/swift.git
synced 2026-10-02 10:58:03 +02:00
This PR updates files in the `stdlib.docc` directory to provide curation for symbols added to the standard library in release 6.4, including task cancellation shields and refs. The [stdlib documentation on docs.swift.org](https://docs.swift.org/latest/documentation/swift) uses these files to organize the online documentation into topics. This PR doesn't affect any compilable source. It's only for the use of the `docc` compiler to produce documentation, either in swift.org's CI or if someone wants to generate a local copy. rdar://181594680
1.8 KiB
1.8 KiB
Manual Memory Management
Allocate and manage memory manually.
Topics
First Steps
Safe Memory Access
Swift/SpanSwift/RawSpanSwift/OutputSpanSwift/OutputRawSpanSwift/UTF8SpanSwift/MutableSpanSwift/MutableRawSpanSwift/SpanIterator
Safe Access to Raw Bytes
Swift/FullyInhabitedSwift/ConvertibleFromBytesSwift/ConvertibleToBytesSwift/ByteOrderSwift/bitCast(_:to:)
Typed Pointers
Use typed pointers and buffers to access memory as instances of a specific type.
Swift/UnsafePointerSwift/UnsafeMutablePointerSwift/UnsafeBufferPointerSwift/UnsafeMutableBufferPointer
Raw Pointers
Use raw pointers and buffers to access memory for loading and storing as raw bytes.
Swift/UnsafeRawPointerSwift/UnsafeMutableRawPointerSwift/UnsafeRawBufferPointerSwift/UnsafeMutableRawBufferPointer
Memory Access
Swift/withUnsafePointer(to:_:)-9fjn6Swift/withUnsafePointer(to:_:)-35wrnSwift/withUnsafeMutablePointer(to:_:)Swift/withUnsafeBytes(of:_:)-3ywhhSwift/withUnsafeMutableBytes(of:_:)Swift/withTemporaryAllocation(byteCount:alignment:_:)Swift/withTemporaryAllocation(of:capacity:_:)Swift/withUnsafeTemporaryAllocation(of:capacity:_:)Swift/withUnsafeTemporaryAllocation(byteCount:alignment:_:)Swift/swap(_:_:)Swift/exchange(_:with:)
Memory Layout
Swift/MemoryLayout
Heap Storage
Swift/UniqueArraySwift/UniqueBox
Reference Counting
Swift/UnmanagedSwift/withExtendedLifetime(_:_:)-4mmpvSwift/withExtendedLifetime(_:_:)-59dz3Swift/extendLifetime(_:)