@@ -262,8 +262,8 @@ extension UnsafePointer where Pointee: ~Copyable {
262
262
/// This pointer must be a pointer to the start of a previously allocated
263
263
/// memory block. The memory must not be initialized or `Pointee` must be a
264
264
/// trivial type.
265
+ @inlinable
265
266
@_preInverseGenerics
266
- @_transparent
267
267
public func deallocate( ) {
268
268
// Passing zero alignment to the runtime forces "aligned
269
269
// deallocation". Since allocation via `UnsafeMutable[Raw][Buffer]Pointer`
@@ -777,8 +777,8 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
777
777
///
778
778
/// - Parameter count: The amount of memory to allocate, counted in instances
779
779
/// of `Pointee`.
780
+ @inlinable
780
781
@_preInverseGenerics
781
- @_transparent
782
782
public static func allocate(
783
783
capacity count: Int
784
784
) -> UnsafeMutablePointer < Pointee > {
@@ -810,8 +810,8 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
810
810
/// This pointer must be a pointer to the start of a previously allocated
811
811
/// memory block. The memory must not be initialized or `Pointee` must be a
812
812
/// trivial type.
813
+ @inlinable
813
814
@_preInverseGenerics
814
- @_transparent
815
815
public func deallocate( ) {
816
816
// Passing zero alignment to the runtime forces "aligned
817
817
// deallocation". Since allocation via `UnsafeMutable[Raw][Buffer]Pointer`
@@ -898,7 +898,6 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
898
898
/// - Parameters:
899
899
/// - value: The instance to initialize this pointer's pointee to.
900
900
@_alwaysEmitIntoClient
901
- @_transparent
902
901
public func initialize( to value: consuming Pointee ) {
903
902
Builtin . initialize ( value, self . _rawValue)
904
903
}
@@ -929,8 +928,8 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
929
928
/// `move()`, the memory is uninitialized.
930
929
///
931
930
/// - Returns: The instance referenced by this pointer.
931
+ @inlinable
932
932
@_preInverseGenerics
933
- @_transparent
934
933
public func move( ) -> Pointee {
935
934
return Builtin . take ( _rawValue)
936
935
}
@@ -1163,9 +1162,9 @@ extension UnsafeMutablePointer where Pointee: ~Copyable {
1163
1162
/// not be negative.
1164
1163
/// - Returns: A raw pointer to the same address as this pointer. The memory
1165
1164
/// referenced by the returned raw pointer is still bound to `Pointee`.
1166
- @discardableResult
1165
+ @inlinable
1167
1166
@_preInverseGenerics
1168
- @_transparent
1167
+ @discardableResult
1169
1168
public func deinitialize( count: Int ) -> UnsafeMutableRawPointer {
1170
1169
_debugPrecondition ( count >= 0 , " UnsafeMutablePointer.deinitialize with negative count " )
1171
1170
// Note: When count is statically known to be 1 the compiler will optimize
0 commit comments