@@ -126,7 +126,7 @@ extension Unsafe${Mutable}BufferPointer where Element: ~Copyable {
126
126
///
127
127
/// If the `baseAddress` of this buffer is `nil`, the count is zero. However,
128
128
/// a buffer can have a `count` of zero even with a non-`nil` base address.
129
- @inlinable
129
+ @_transparent
130
130
@_preInverseGenerics
131
131
@safe
132
132
public var baseAddress: Unsafe ${ Mutable} Poin ter< Element>? {
@@ -240,7 +240,7 @@ extension Unsafe${Mutable}BufferPointer where Element: ~Copyable {
240
240
///
241
241
/// The `startIndex` property of an `Unsafe${Mutable}BufferPointer` instance
242
242
/// is always zero.
243
- @inlinable
243
+ @_transparent
244
244
@_preInverseGenerics
245
245
@safe
246
246
public var startIndex : Int { 0 }
@@ -250,20 +250,20 @@ extension Unsafe${Mutable}BufferPointer where Element: ~Copyable {
250
250
///
251
251
/// The `endIndex` property of an `Unsafe${Mutable}BufferPointer` instance is
252
252
/// always identical to `count`.
253
- @inlinable
253
+ @_transparent
254
254
@_preInverseGenerics
255
255
@safe
256
256
public var endIndex : Int { count }
257
257
258
- @inlinable
259
- @safe
258
+ @_transparent
260
259
@_preInverseGenerics
260
+ @safe
261
261
public var indices : Range < Int > {
262
262
// Not checked because init forbids negative count.
263
263
unsafe Range( uncheckedBounds: ( 0 , count) )
264
264
}
265
265
266
- @inlinable
266
+ @_transparent
267
267
@_preInverseGenerics
268
268
public func index( after i: Int ) -> Int {
269
269
// NOTE: this is a manual specialization of index movement for a Strideable
@@ -281,7 +281,7 @@ extension Unsafe${Mutable}BufferPointer where Element: ~Copyable {
281
281
return result. partialValue
282
282
}
283
283
284
- @inlinable
284
+ @_transparent
285
285
@_preInverseGenerics
286
286
public func formIndex( after i: inout Int ) {
287
287
// NOTE: this is a manual specialization of index movement for a Strideable
@@ -295,7 +295,7 @@ extension Unsafe${Mutable}BufferPointer where Element: ~Copyable {
295
295
i = result. partialValue
296
296
}
297
297
298
- @inlinable
298
+ @_transparent
299
299
@_preInverseGenerics
300
300
public func index( before i: Int ) -> Int {
301
301
// NOTE: this is a manual specialization of index movement for a Strideable
@@ -309,7 +309,7 @@ extension Unsafe${Mutable}BufferPointer where Element: ~Copyable {
309
309
return result. partialValue
310
310
}
311
311
312
- @inlinable
312
+ @_transparent
313
313
@_preInverseGenerics
314
314
public func formIndex( before i: inout Int ) {
315
315
// NOTE: this is a manual specialization of index movement for a Strideable
@@ -323,7 +323,7 @@ extension Unsafe${Mutable}BufferPointer where Element: ~Copyable {
323
323
i = result. partialValue
324
324
}
325
325
326
- @inlinable
326
+ @_transparent
327
327
@_preInverseGenerics
328
328
public func index( _ i: Int , offsetBy n: Int ) -> Int {
329
329
// NOTE: this is a manual specialization of index movement for a Strideable
0 commit comments