mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Since these APIs operate on unsafes we consider them unsafe by default. This PR adds APINotes to override these defaults as these APIs will not touch the underlying buffer. This should slightly reduce the number of `unsafe`s in user code. rdar://159839254
36 lines
747 B
Plaintext
36 lines
747 B
Plaintext
Name: std
|
|
Functions:
|
|
- Name: abs
|
|
Availability: nonswift
|
|
AvailabilityMsg: Use the C standard library function
|
|
- Name: div
|
|
Availability: nonswift
|
|
AvailabilityMsg: Use the C standard library function
|
|
Namespaces:
|
|
- Name: std
|
|
Tags:
|
|
- Name: basic_string
|
|
SwiftImportAs: owned
|
|
- Name: vector
|
|
SwiftImportAs: owned
|
|
- Name: span
|
|
Methods:
|
|
- Name: data
|
|
SwiftName: __dataUnsafe()
|
|
- Name: size
|
|
SwiftSafety: safe
|
|
- Name: size_bytes
|
|
SwiftSafety: safe
|
|
- Name: empty
|
|
SwiftSafety: safe
|
|
- Name: basic_string_view
|
|
Methods:
|
|
- Name: size
|
|
SwiftSafety: safe
|
|
- Name: max_size
|
|
SwiftSafety: safe
|
|
- Name: length
|
|
SwiftSafety: safe
|
|
- Name: empty
|
|
SwiftSafety: safe
|
|
|