mirror of
https://github.com/apple/swift.git
synced 2026-10-14 15:51:20 +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
52 lines
1.1 KiB
Markdown
52 lines
1.1 KiB
Markdown
# C Interoperability
|
|
|
|
Use imported C types or call C variadic functions.
|
|
|
|
## Topics
|
|
|
|
### C Pointers
|
|
|
|
- ``Swift/OpaquePointer``
|
|
- ``Swift/AutoreleasingUnsafeMutablePointer``
|
|
|
|
### C Variadic Functions
|
|
|
|
- ``Swift/withVaList(_:_:)``
|
|
- ``Swift/CVaListPointer``
|
|
- ``Swift/CVarArg``
|
|
- ``Swift/getVaList(_:)``
|
|
|
|
### Pointers to Values
|
|
|
|
Access a pointer to a variable in memory for explicit passing to C functions.
|
|
|
|
- ``Swift/withUnsafePointer(to:_:)-9fjn6``
|
|
- ``Swift/withUnsafePointer(to:_:)-35wrn``
|
|
- ``Swift/withUnsafeMutablePointer(to:_:)``
|
|
- ``Swift/withUnsafeBytes(of:_:)-3ywhh``
|
|
- ``Swift/withUnsafeBytes(of:_:)-5gesg``
|
|
- ``Swift/withUnsafeMutableBytes(of:_:)``
|
|
|
|
### Aliases for Imported C Types
|
|
|
|
- ``Swift/CBool``
|
|
- ``Swift/CChar``
|
|
- ``Swift/CChar8``
|
|
- ``Swift/CChar16``
|
|
- ``Swift/CChar32``
|
|
- ``Swift/CDouble``
|
|
- ``Swift/CLongDouble``
|
|
- ``Swift/CFloat``
|
|
- ``Swift/CFloat16``
|
|
- ``Swift/CInt``
|
|
- ``Swift/CLong``
|
|
- ``Swift/CLongLong``
|
|
- ``Swift/CShort``
|
|
- ``Swift/CSignedChar``
|
|
- ``Swift/CUnsignedChar``
|
|
- ``Swift/CUnsignedInt``
|
|
- ``Swift/CUnsignedLong``
|
|
- ``Swift/CUnsignedLongLong``
|
|
- ``Swift/CUnsignedShort``
|
|
- ``Swift/CWideChar``
|