File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
branches/master-next/stdlib/public/core Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3
- refs/heads/master-next: ae932e864c6f629ba1f29b42eb650d1549a7cde2
3
+ refs/heads/master-next: c0098f9a9b6d8dae0a907520b990a135c5bb231b
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
6
6
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07
Original file line number Diff line number Diff line change @@ -375,6 +375,9 @@ extension Unsafe${Mutable}RawBufferPointer {
375
375
/// must be properly aligned for accessing `T`, and `source.count` must be a
376
376
/// multiple of `MemoryLayout<T>.stride`.
377
377
///
378
+ /// The memory referenced by `source` may overlap with the memory referenced
379
+ /// by this buffer.
380
+ ///
378
381
/// After calling `copyMemory(from:)`, the first `source.count` bytes of
379
382
/// memory referenced by this buffer are initialized to raw bytes. If the
380
383
/// memory is bound to type `T`, then it contains values of type `T`.
Original file line number Diff line number Diff line change @@ -966,14 +966,17 @@ public struct UnsafeMutableRawPointer: _Pointer {
966
966
/// must be properly aligned for accessing `T`, and `byteCount` must be a
967
967
/// multiple of `MemoryLayout<T>.stride`.
968
968
///
969
- /// After calling `copyMemory(from:byteCount:)`, the `byteCount` bytes of memory
970
- /// referenced by this pointer are initialized to raw bytes. If the memory
971
- /// is bound to type `T`, then it contains values of type `T`.
969
+ /// The memory in the region `source..<(source + byteCount)` may overlap with
970
+ /// the memory referenced by this pointer.
971
+ ///
972
+ /// After calling `copyMemory(from:byteCount:)`, the `byteCount` bytes of
973
+ /// memory referenced by this pointer are initialized to raw bytes. If the
974
+ /// memory is bound to type `T`, then it contains values of type `T`.
972
975
///
973
976
/// - Parameters:
974
977
/// - source: A pointer to the memory to copy bytes from. The memory in the
975
- /// region `source..<(source + byteCount)` must be initialized to a trivial
976
- /// type.
978
+ /// region `source..<(source + byteCount)` must be initialized to a
979
+ /// trivial type.
977
980
/// - byteCount: The number of bytes to copy. `byteCount` must not be negative.
978
981
@inlinable
979
982
public func copyMemory( from source: UnsafeRawPointer , byteCount: Int ) {
You can’t perform that action at this time.
0 commit comments