@@ -946,7 +946,9 @@ extension UnsafeMutableBufferPointer {
946
946
$0. count <= self . count,
947
947
" buffer cannot contain every element from source. "
948
948
)
949
- baseAddress? . initialize ( from: sourceAddress, count: $0. count)
949
+ baseAddress. unsafelyUnwrapped. initialize (
950
+ from: sourceAddress, count: $0. count
951
+ )
950
952
return $0. count
951
953
}
952
954
if let count {
@@ -1049,7 +1051,7 @@ extension UnsafeMutableBufferPointer {
1049
1051
$0. count <= self . count,
1050
1052
" buffer cannot contain every element from source. "
1051
1053
)
1052
- baseAddress? . update ( from: sourceAddress, count: $0. count)
1054
+ baseAddress. unsafelyUnwrapped . update ( from: sourceAddress, count: $0. count)
1053
1055
return $0. count
1054
1056
}
1055
1057
if let count {
@@ -1117,7 +1119,9 @@ extension UnsafeMutableBufferPointer where Element: ~Copyable {
1117
1119
source. count <= self . count,
1118
1120
" buffer cannot contain every element from source. "
1119
1121
)
1120
- baseAddress? . moveInitialize ( from: sourceAddress, count: source. count)
1122
+ baseAddress. unsafelyUnwrapped. moveInitialize (
1123
+ from: sourceAddress, count: source. count
1124
+ )
1121
1125
return startIndex. advanced ( by: source. count)
1122
1126
}
1123
1127
}
@@ -1191,7 +1195,9 @@ extension UnsafeMutableBufferPointer where Element: ~Copyable {
1191
1195
source. count <= self . count,
1192
1196
" buffer cannot contain every element from source. "
1193
1197
)
1194
- baseAddress? . moveUpdate ( from: sourceAddress, count: source. count)
1198
+ baseAddress. unsafelyUnwrapped. moveUpdate (
1199
+ from: sourceAddress, count: source. count
1200
+ )
1195
1201
return startIndex. advanced ( by: source. count)
1196
1202
}
1197
1203
}
0 commit comments