@@ -702,6 +702,9 @@ extension Unsafe${Mutable}BufferPointer {
702
702
///
703
703
/// - Precondition: `self.count` >= `source.count`
704
704
///
705
+ /// - Note: The memory regions referenced by `source` and this buffer
706
+ /// must not overlap.
707
+ ///
705
708
/// - Parameter source: A collection of elements to be used to
706
709
/// initialize the buffer's storage.
707
710
/// - Returns: The index one past the last element of the buffer initialized
@@ -801,6 +804,9 @@ extension Unsafe${Mutable}BufferPointer {
801
804
/// buffer's `startIndex`. If `source` contains as many elements as the buffer
802
805
/// can hold, the returned index is equal to the buffer's `endIndex`.
803
806
///
807
+ /// - Note: The memory regions referenced by `source` and this buffer
808
+ /// may overlap.
809
+ ///
804
810
/// - Precondition: `self.count` >= `source.count`
805
811
///
806
812
/// - Parameter source: A collection of elements to be used to update
@@ -870,9 +876,11 @@ extension Unsafe${Mutable}BufferPointer {
870
876
///
871
877
/// - Precondition: `self.count` >= `source.count`
872
878
///
879
+ /// - Note: The memory regions referenced by `source` and this buffer
880
+ /// may overlap.
881
+ ///
873
882
/// - Parameter source: A buffer containing the values to copy. The memory
874
- /// region underlying `source` must be initialized. The memory regions
875
- /// referenced by `source` and this buffer may overlap.
883
+ /// region underlying `source` must be initialized.
876
884
/// - Returns: The index one past the last element of the buffer initialized
877
885
/// by this function.
878
886
@inlinable
@@ -910,9 +918,11 @@ extension Unsafe${Mutable}BufferPointer {
910
918
///
911
919
/// - Precondition: `self.count` >= `source.count`
912
920
///
921
+ /// - Note: The memory regions referenced by `source` and this buffer
922
+ /// may overlap.
923
+ ///
913
924
/// - Parameter source: A buffer containing the values to copy. The memory
914
- /// region underlying `source` must be initialized. The memory regions
915
- /// referenced by `source` and this buffer may overlap.
925
+ /// region underlying `source` must be initialized.
916
926
/// - Returns: The index one past the last element of the buffer initialized
917
927
/// by this function.
918
928
@inlinable
@@ -937,11 +947,13 @@ extension Unsafe${Mutable}BufferPointer {
937
947
/// buffer's `startIndex`. If `source` contains as many elements as the buffer
938
948
/// can hold, the returned index is equal to the buffer's `endIndex`.
939
949
///
950
+ /// - Note: The memory regions referenced by `source` and this buffer
951
+ /// must not overlap.
952
+ ///
940
953
/// - Precondition: `self.count` >= `source.count`
941
954
///
942
955
/// - Parameter source: A buffer containing the values to move.
943
- /// The memory region underlying `source` must be initialized. The memory
944
- /// regions referenced by `source` and this buffer must not overlap.
956
+ /// The memory region underlying `source` must be initialized.
945
957
/// - Returns: An index one past the index of the last element updated.
946
958
@inlinable
947
959
@_alwaysEmitIntoClient
@@ -973,11 +985,13 @@ extension Unsafe${Mutable}BufferPointer {
973
985
/// buffer's `startIndex`. If `source` contains as many elements as the buffer
974
986
/// can hold, the returned index is equal to the buffer's `endIndex`.
975
987
///
988
+ /// - Note: The memory regions referenced by `source` and this buffer
989
+ /// must not overlap.
990
+ ///
976
991
/// - Precondition: `self.count` >= `source.count`
977
992
///
978
993
/// - Parameter source: A buffer slice containing the values to move.
979
- /// The memory region underlying `source` must be initialized. The
980
- /// memory regions referenced by `source` and this pointer must not overlap.
994
+ /// The memory region underlying `source` must be initialized.
981
995
/// - Returns: An index one past the index of the last element updated.
982
996
@inlinable
983
997
@_alwaysEmitIntoClient
0 commit comments