@@ -1278,6 +1278,7 @@ public func withUnsafeMutableBytes<T: ~Copyable, E: Error, Result: ~Copyable>(
1278
1278
return try unsafe body( unsafe . init ( start: pointer, count: MemoryLayout< T> . size) )
1279
1279
}
1280
1280
1281
+ #if !$Embedded
1281
1282
/// ABI: Historical withUnsafeMutableBytes(of:_:) rethrows,
1282
1283
/// expressed as "throws", which is ABI-compatible with "rethrows".
1283
1284
@_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
@@ -1292,6 +1293,7 @@ func __abi_se0413_withUnsafeMutableBytes<T, Result>(
1292
1293
start: $0, count: MemoryLayout< T> . size) )
1293
1294
}
1294
1295
}
1296
+ #endif
1295
1297
1296
1298
/// Invokes the given closure with a buffer pointer covering the raw bytes of
1297
1299
/// the given argument.
@@ -1345,6 +1347,7 @@ public func withUnsafeBytes<T: ~Copyable, E: Error, Result: ~Copyable>(
1345
1347
return try unsafe body( unsafe . init ( start: address, count: MemoryLayout< T> . size) )
1346
1348
}
1347
1349
1350
+ #if !$Embedded
1348
1351
/// ABI: Historical withUnsafeBytes(of:_:) rethrows,
1349
1352
/// expressed as "throws", which is ABI-compatible with "rethrows".
1350
1353
@_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
@@ -1358,6 +1361,7 @@ func __abi_se0413_withUnsafeBytes<T, Result>(
1358
1361
try unsafe body( unsafe UnsafeRawBufferPointer( start: $0, count: MemoryLayout< T> . size) )
1359
1362
}
1360
1363
}
1364
+ #endif
1361
1365
1362
1366
/// Invokes the given closure with a buffer pointer covering the raw bytes of
1363
1367
/// the given argument.
@@ -1409,6 +1413,7 @@ public func withUnsafeBytes<
1409
1413
return try unsafe body( unsafe . init ( start: addr, count: MemoryLayout< T> . size) )
1410
1414
}
1411
1415
1416
+ #if !$Embedded
1412
1417
/// ABI: Historical withUnsafeBytes(of:_:) rethrows,
1413
1418
/// expressed as "throws", which is ABI-compatible with "rethrows".
1414
1419
@_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
@@ -1422,6 +1427,7 @@ func __abi_se0413_withUnsafeBytes<T, Result>(
1422
1427
let buffer = unsafe UnsafeRawBufferPointer( start: addr, count: MemoryLayout< T> . size)
1423
1428
return try unsafe body( buffer)
1424
1429
}
1430
+ #endif
1425
1431
1426
1432
/// Invokes the given closure with a buffer pointer covering the raw bytes of
1427
1433
/// the given argument.
0 commit comments