@@ -1278,6 +1278,7 @@ public func withUnsafeMutableBytes<T: ~Copyable, E: Error, Result: ~Copyable>(
12781278 return try unsafe body( unsafe . init ( start: pointer, count: MemoryLayout< T> . size) )
12791279}
12801280
1281+ #if !$Embedded
12811282/// ABI: Historical withUnsafeMutableBytes(of:_:) rethrows,
12821283/// expressed as "throws", which is ABI-compatible with "rethrows".
12831284@_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
@@ -1292,6 +1293,7 @@ func __abi_se0413_withUnsafeMutableBytes<T, Result>(
12921293 start: $0, count: MemoryLayout< T> . size) )
12931294 }
12941295}
1296+ #endif
12951297
12961298/// Invokes the given closure with a buffer pointer covering the raw bytes of
12971299/// the given argument.
@@ -1345,6 +1347,7 @@ public func withUnsafeBytes<T: ~Copyable, E: Error, Result: ~Copyable>(
13451347 return try unsafe body( unsafe . init ( start: address, count: MemoryLayout< T> . size) )
13461348}
13471349
1350+ #if !$Embedded
13481351/// ABI: Historical withUnsafeBytes(of:_:) rethrows,
13491352/// expressed as "throws", which is ABI-compatible with "rethrows".
13501353@_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
@@ -1358,6 +1361,7 @@ func __abi_se0413_withUnsafeBytes<T, Result>(
13581361 try unsafe body( unsafe UnsafeRawBufferPointer( start: $0, count: MemoryLayout< T> . size) )
13591362 }
13601363}
1364+ #endif
13611365
13621366/// Invokes the given closure with a buffer pointer covering the raw bytes of
13631367/// the given argument.
@@ -1409,6 +1413,7 @@ public func withUnsafeBytes<
14091413 return try unsafe body( unsafe . init ( start: addr, count: MemoryLayout< T> . size) )
14101414}
14111415
1416+ #if !$Embedded
14121417/// ABI: Historical withUnsafeBytes(of:_:) rethrows,
14131418/// expressed as "throws", which is ABI-compatible with "rethrows".
14141419@_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
@@ -1422,6 +1427,7 @@ func __abi_se0413_withUnsafeBytes<T, Result>(
14221427 let buffer = unsafe UnsafeRawBufferPointer( start: addr, count: MemoryLayout< T> . size)
14231428 return try unsafe body( buffer)
14241429}
1430+ #endif
14251431
14261432/// Invokes the given closure with a buffer pointer covering the raw bytes of
14271433/// the given argument.
0 commit comments